public function testFind() { foreach (array('tic', 'tic tac', 'tac', 'tac toc', 'toc') as $description) { $image = new LocalImage($description); $image->setDescription($description); $this->orm->persist($image); } $this->orm->flush(); $this->assertEquals(2, count($this->service->find('tic'))); }
public function testSetGetDescription() { $image = new LocalImage(self::PICTURE_LANDSCAPE); $image->setDescription('desc'); $this->assertEquals('desc', $image->getDescription()); }