Пример #1
0
 /**
  * @test
  */
 public function hasImageForSingleEventWithImageReturnsTrue()
 {
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'image' => 'file.jpg'));
     self::assertTrue($this->fixture->hasImage());
 }
Пример #2
0
 /**
  * @test
  */
 public function hasImageForEventDateWithImageReturnsTrue()
 {
     $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('image' => 'file.jpg'));
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic));
     self::assertTrue($this->fixture->hasImage());
 }