diff -u b/core/modules/filter/tests/src/Kernel/Migrate/d6/MigrateFilterFormatTest.php b/core/modules/filter/tests/src/Kernel/Migrate/d6/MigrateFilterFormatTest.php --- b/core/modules/filter/tests/src/Kernel/Migrate/d6/MigrateFilterFormatTest.php +++ b/core/modules/filter/tests/src/Kernel/Migrate/d6/MigrateFilterFormatTest.php @@ -45,11 +45,10 @@ $this->assertSame(FALSE, $filters['filter_html']['settings']['filter_html_nofollow']); $this->assertSame(72, $filters['filter_url']['settings']['filter_url_length']); - // Check that the PHP code filter is converted to filter_null. - /** @var FilterFormatInterface $format */ + // Because the PHP code filter does not exist, the PHP code format should + // have been skipped. $format = FilterFormat::load('php_code'); - $this->assertInstanceOf(FilterFormatInterface::class, $format); - $this->assertArrayHasKey('filter_null', $format->get('filters')); + $this->assertNull($format); } } only in patch2: unchanged: --- a/core/modules/migrate_drupal_ui/src/Tests/d6/MigrateUpgrade6Test.php +++ b/core/modules/migrate_drupal_ui/src/Tests/d6/MigrateUpgrade6Test.php @@ -45,7 +45,7 @@ protected function getEntityCounts() { 'field_config' => 63, 'field_storage_config' => 43, 'file' => 7, - 'filter_format' => 7, + 'filter_format' => 6, 'image_style' => 5, 'language_content_settings' => 2, 'migration' => 105, only in patch2: unchanged: --- a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php +++ b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php @@ -28,22 +28,22 @@ public function testUserRole() { $id_map = $this->getMigration('d6_user_role')->getIdMap(); $rid = 'anonymous'; $anonymous = Role::load($rid); - $this->assertIdentical($rid, $anonymous->id()); - $this->assertIdentical(array('migrate test anonymous permission', 'use text format filtered_html'), $anonymous->getPermissions()); - $this->assertIdentical(array($rid), $id_map->lookupDestinationId(array(1))); + $this->assertSame($rid, $anonymous->id()); + $this->assertSame(array('migrate test anonymous permission', 'use text format filtered_html'), $anonymous->getPermissions()); + $this->assertSame(array($rid), $id_map->lookupDestinationId(array(1))); $rid = 'authenticated'; $authenticated = Role::load($rid); - $this->assertIdentical($rid, $authenticated->id()); - $this->assertIdentical(array('migrate test authenticated permission', 'use text format filtered_html'), $authenticated->getPermissions()); - $this->assertIdentical(array($rid), $id_map->lookupDestinationId(array(2))); + $this->assertSame($rid, $authenticated->id()); + $this->assertSame(array('migrate test authenticated permission', 'use text format filtered_html'), $authenticated->getPermissions()); + $this->assertSame(array($rid), $id_map->lookupDestinationId(array(2))); $rid = 'migrate_test_role_1'; $migrate_test_role_1 = Role::load($rid); - $this->assertIdentical($rid, $migrate_test_role_1->id()); - $this->assertIdentical(array('migrate test role 1 test permission', 'use text format full_html', 'use text format php_code'), $migrate_test_role_1->getPermissions()); - $this->assertIdentical(array($rid), $id_map->lookupDestinationId(array(3))); + $this->assertSame($rid, $migrate_test_role_1->id()); + $this->assertSame(array('migrate test role 1 test permission', 'use text format full_html'), $migrate_test_role_1->getPermissions()); + $this->assertSame(array($rid), $id_map->lookupDestinationId(array(3))); $rid = 'migrate_test_role_2'; $migrate_test_role_2 = Role::load($rid); - $this->assertIdentical(array( + $this->assertSame(array( 'migrate test role 2 test permission', 'use PHP for settings', 'administer contact forms', @@ -59,14 +59,13 @@ public function testUserRole() { 'edit own forum content', 'administer nodes', 'access content overview', - 'use text format php_code', ), $migrate_test_role_2->getPermissions()); - $this->assertIdentical($rid, $migrate_test_role_2->id()); - $this->assertIdentical(array($rid), $id_map->lookupDestinationId(array(4))); + $this->assertSame($rid, $migrate_test_role_2->id()); + $this->assertSame(array($rid), $id_map->lookupDestinationId(array(4))); $rid = 'migrate_test_role_3_that_is_long'; $migrate_test_role_3 = Role::load($rid); - $this->assertIdentical($rid, $migrate_test_role_3->id()); - $this->assertIdentical(array($rid), $id_map->lookupDestinationId(array(5))); + $this->assertSame($rid, $migrate_test_role_3->id()); + $this->assertSame(array($rid), $id_map->lookupDestinationId(array(5))); } }