diff --git a/tests/Opus/CollectionTest.php b/tests/Opus/CollectionTest.php index 9f626160..613931dc 100644 --- a/tests/Opus/CollectionTest.php +++ b/tests/Opus/CollectionTest.php @@ -89,6 +89,8 @@ public function setUp() $this->object = $this->roleFixture->addRootCollection(); $this->object->setTheme('dummy'); + $this->object->store(); + $this->roleFixture->store(); } @@ -565,8 +567,6 @@ public function testGetDisplayNameWithIncompatibleRole() public function testGetVisibleChildren() { - $this->object->store(); - // add two children: one of them (the first child) is invisible $coll1 = new Collection(); $coll1->setVisible('1'); @@ -592,8 +592,6 @@ public function testGetVisibleChildren() public function testHasVisibleChildren() { - $this->object->store(); - $this->assertFalse($this->object->hasVisibleChildren()); $this->assertFalse($this->object->hasChildren()); @@ -916,8 +914,6 @@ protected function setUpFixtureForMoveTests() */ public function testHasVisiblePublishChildren() { - $this->object->store(); - $this->assertFalse($this->object->hasVisiblePublishChildren()); $this->assertFalse($this->object->hasChildren()); @@ -954,8 +950,6 @@ public function testHasVisiblePublishChildren() public function testHasVisiblePublishChildrenFalseIfNotVisible() { - $this->object->store(); - $this->assertFalse($this->object->hasVisiblePublishChildren()); $this->assertFalse($this->object->hasChildren()); @@ -975,8 +969,6 @@ public function testHasVisiblePublishChildrenFalseIfNotVisible() */ public function testGetVisiblePublishChildren() { - $this->object->store(); - // add two children: one of them (the first child) is invisible $coll1 = new Collection(); $coll1->setVisiblePublish('1');