/** * @test */ public function renderNotSelectsAnyOptionWithInvalidSelectedExtension() { $this->userSettingsService->set(Tx_Phpunit_Interface_Request::PARAMETER_KEY_TESTABLE, 'foo'); $this->subject->injectUserSettingService($this->userSettingsService); $this->subject->render(); self::assertNotContains(' selected="selected"', $this->outputService->getCollectedOutput()); }
/** * @test */ public function setWritesUserSettings() { $this->getBackEndUserMock()->expects(self::once())->method('writeUC'); $this->subject->set('foo', 'bar'); }
/** * @test */ public function setWritesUserSettings() { $GLOBALS['BE_USER']->expects($this->once())->method('writeUC'); $this->fixture->set('foo', 'bar'); }