diff --git a/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php b/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php index ffcc3fe..60e5f4d 100644 --- a/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php +++ b/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php @@ -33,28 +33,28 @@ protected function setUp() { */ public function testBook() { $nodes = Node::loadMultiple(array(4, 5, 6, 7, 8)); - $this->assertIdentical('4', $nodes[4]->book['bid']); - $this->assertIdentical('0', $nodes[4]->book['pid']); + $this->assertSame('4', $nodes[4]->book['bid']); + $this->assertSame('0', $nodes[4]->book['pid']); - $this->assertIdentical('4', $nodes[5]->book['bid']); - $this->assertIdentical('4', $nodes[5]->book['pid']); + $this->assertSame('4', $nodes[5]->book['bid']); + $this->assertSame('4', $nodes[5]->book['pid']); - $this->assertIdentical('4', $nodes[6]->book['bid']); - $this->assertIdentical('5', $nodes[6]->book['pid']); + $this->assertSame('4', $nodes[6]->book['bid']); + $this->assertSame('5', $nodes[6]->book['pid']); - $this->assertIdentical('4', $nodes[7]->book['bid']); - $this->assertIdentical('5', $nodes[7]->book['pid']); + $this->assertSame('4', $nodes[7]->book['bid']); + $this->assertSame('5', $nodes[7]->book['pid']); - $this->assertIdentical('8', $nodes[8]->book['bid']); - $this->assertIdentical('0', $nodes[8]->book['pid']); + $this->assertSame('8', $nodes[8]->book['bid']); + $this->assertSame('0', $nodes[8]->book['pid']); $tree = \Drupal::service('book.manager')->bookTreeAllData(4); - $this->assertIdentical('4', $tree['49990 Node 4 4']['link']['nid']); - $this->assertIdentical('5', $tree['49990 Node 4 4']['below']['50000 Node 5 5']['link']['nid']); - $this->assertIdentical('6', $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 6 6']['link']['nid']); - $this->assertIdentical('7', $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 7 7']['link']['nid']); - $this->assertIdentical(array(), $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 6 6']['below']); - $this->assertIdentical(array(), $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 7 7']['below']); + $this->assertSame('4', $tree['49990 Node 4 4']['link']['nid']); + $this->assertSame('5', $tree['49990 Node 4 4']['below']['50000 Node 5 5']['link']['nid']); + $this->assertSame('6', $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 6 6']['link']['nid']); + $this->assertSame('7', $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 7 7']['link']['nid']); + $this->assertSame(array(), $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 6 6']['below']); + $this->assertSame(array(), $tree['49990 Node 4 4']['below']['50000 Node 5 5']['below']['50000 Node 7 7']['below']); } }