Skip to content

Commit

Permalink
#220 Removes code that isn't needed anymore with the Doctrine/ORM imp…
Browse files Browse the repository at this point in the history
…lementation
  • Loading branch information
extracts committed Feb 17, 2022
1 parent c9a83d9 commit f0455d5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/Opus/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ public function testGetChildren()
$child1 = $root->addLastChild();
$root->store();

// FIXME: We have to reload model to get correct results!
$root = Collection::get($root->getId());

$this->assertTrue(is_array($root->getChildren()));
$this->assertEquals(1, count($root->getChildren()), 'Root collection should have one child.');

Expand All @@ -195,8 +192,6 @@ public function testGetChildren()
$child1->addFirstChild();
$child1->store();

// FIXME: We have to reload model to get correct results!
$root = Collection::get($root->getId());

$this->assertTrue(is_array($root->getChildren()));
$this->assertEquals(2, count($root->getChildren()), 'Root collection should have two children.');
Expand Down

0 comments on commit f0455d5

Please sign in to comment.