Пример #1
0
 /**
  * @test
  */
 public function getRawTitleWithNonEmptyTitleReturnsTitle()
 {
     $this->fixture->setData(array('title' => 'Superhero'));
     self::assertSame('Superhero', $this->fixture->getRawTitle());
 }
Пример #2
0
 /**
  * @test
  */
 public function getRawTitleWithNonEmptyTopicTitleReturnsDateTitle()
 {
     $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('title' => 'Superhero'));
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic, 'title' => 'Supervillain'));
     self::assertSame('Supervillain', $this->fixture->getRawTitle());
 }