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()); }
/** * @test */ public function existsSeminarMessageForInexistentUidSendsNotFoundHeader() { $this->fixture->existsSeminarMessage($this->testingFramework->getAutoIncrement('tx_seminars_seminars')); self::assertSame('Status: 404 Not Found', $this->headerCollector->getLastAddedHeader()); }
/** * @test */ public function renderReturnsEmptyStringIfUidOfInexistentEventIsSetInPiVar() { $this->fixture->piVars['uid'] = $this->testingFramework->getAutoIncrement('tx_seminars_seminars'); self::assertEquals('', $this->fixture->render()); }