/** * @test */ public function removePositionFromObjectStorageHoldingPositions() { $position = new \Bjr\BjrLend\Domain\Model\OrderPosition(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($position); $localObjectStorage->detach($position); $this->fixture->addPosition($position); $this->fixture->removePosition($position); $this->assertEquals($localObjectStorage, $this->fixture->getPositions()); }
/** * @test */ public function removeLayerFromObjectStorageHoldingLayers() { $layer = new \sirconic\SgLayerslider\Domain\Model\Layer(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($layer); $localObjectStorage->detach($layer); $this->fixture->addLayer($layer); $this->fixture->removeLayer($layer); $this->assertEquals($localObjectStorage, $this->fixture->getLayers()); }
/** * @test */ public function removeChildFromObjectStorageHoldingChilds() { $child = new \Bjr\BjrLend\Domain\Model\Category(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($child); $localObjectStorage->detach($child); $this->fixture->addChild($child); $this->fixture->removeChild($child); $this->assertEquals($localObjectStorage, $this->fixture->getChilds()); }
/** * @test */ public function removeItemFromObjectStorageHoldingItems() { $item = new \TYPO3\SkIsotopeGallery\Domain\Model\Item(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($item); $localObjectStorage->detach($item); $this->fixture->addItem($item); $this->fixture->removeItem($item); $this->assertEquals($localObjectStorage, $this->fixture->getItems()); }
/** * @test */ public function removeLanguageFromObjectStorageHoldingLanguages() { $language = new \GK\Stdapp\Domain\Model\Language(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($language); $localObjectStorage->detach($language); $this->fixture->addLanguage($language); $this->fixture->removeLanguage($language); $this->assertEquals($localObjectStorage, $this->fixture->getLanguages()); }
/** * @test */ public function removeElementFromObjectStorageHoldingElements() { $element = new \sirconic\SgLayerslider\Domain\Model\Element(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($element); $localObjectStorage->detach($element); $this->fixture->addElement($element); $this->fixture->removeElement($element); $this->assertEquals($localObjectStorage, $this->fixture->getElements()); }
/** * @test */ public function removeOrderFromObjectStorageHoldingOrders() { $order = new \Bjr\BjrLend\Domain\Model\Order(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($order); $localObjectStorage->detach($order); $this->fixture->addOrder($order); $this->fixture->removeOrder($order); $this->assertEquals($localObjectStorage, $this->fixture->getOrders()); }
/** * @test */ public function removeGroupFromObjectStorageHoldingGroups() { $group = new \TYPO3\SkIsotopeGallery\Domain\Model\Group(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($group); $localObjectStorage->detach($group); $this->fixture->addGroup($group); $this->fixture->removeGroup($group); $this->assertEquals($localObjectStorage, $this->fixture->getGroups()); }