X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FCommand%2FDbDumpTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FCommand%2FDbDumpTest.php;h=17b6ae41da10549e949c7b77e1563e0d4a6f3643;hp=8129410e6099c82d6c3e01d057fc4bb919a01608;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php b/web/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php index 8129410e6..17b6ae41d 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php @@ -70,7 +70,8 @@ class DbDumpTest extends KernelTestBase { parent::register($container); $container->register('cache_factory', 'Drupal\Core\Cache\DatabaseBackendFactory') ->addArgument(new Reference('database')) - ->addArgument(new Reference('cache_tags.invalidator.checksum')); + ->addArgument(new Reference('cache_tags.invalidator.checksum')) + ->addArgument(new Reference('settings')); } /** @@ -205,8 +206,8 @@ class DbDumpTest extends KernelTestBase { $this->assertTrue(Database::getConnection() ->schema() ->tableExists($table), SafeMarkup::format('Table @table created by the database script.', ['@table' => $table])); - $this->assertIdentical($this->originalTableSchemas[$table], $this->getTableSchema($table), SafeMarkup::format('The schema for @table was properly restored.', ['@table' => $table])); - $this->assertIdentical($this->originalTableIndexes[$table], $this->getTableIndexes($table), SafeMarkup::format('The indexes for @table were properly restored.', ['@table' => $table])); + $this->assertSame($this->originalTableSchemas[$table], $this->getTableSchema($table), SafeMarkup::format('The schema for @table was properly restored.', ['@table' => $table])); + $this->assertSame($this->originalTableIndexes[$table], $this->getTableIndexes($table), SafeMarkup::format('The indexes for @table were properly restored.', ['@table' => $table])); } // Ensure the test config has been replaced.