/** * @test */ public function setSpecialPricesSetsSpecialPrices() { $price = 10.0; $specialPrice = new \Extcode\Cart\Domain\Model\Product\SpecialPrice(); $specialPrice->setPrice($price); $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorage->attach($specialPrice); $this->product->setSpecialPrices($objectStorage); $this->assertContains($specialPrice, $this->product->getSpecialPrices()); }