Exemplo n.º 1
0
 public function testShowForOneInexistentEventShowsUserName()
 {
     $userUid = $this->testingFramework->createFrontEndUser('', array('name' => 'user_foo'));
     $seminarUid = $this->testingFramework->getAutoIncrement('tx_seminars_seminars');
     $this->testingFramework->createRecord('tx_seminars_attendances', array('pid' => $this->dummySysFolderPid, 'seminar' => $seminarUid, 'user' => $userUid));
     self::assertContains('user_foo', $this->fixture->show());
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function existsSeminarMessageForInexistentUidSendsNotFoundHeader()
 {
     $this->fixture->existsSeminarMessage($this->testingFramework->getAutoIncrement('tx_seminars_seminars'));
     self::assertSame('Status: 404 Not Found', $this->headerCollector->getLastAddedHeader());
 }
Exemplo n.º 3
0
 /**
  * @test
  */
 public function renderReturnsEmptyStringIfUidOfInexistentEventIsSetInPiVar()
 {
     $this->fixture->piVars['uid'] = $this->testingFramework->getAutoIncrement('tx_seminars_seminars');
     self::assertEquals('', $this->fixture->render());
 }