/** * Renders the intro screen for the function "Run tests". * * @return void */ protected function renderRunTestsIntro() { if (!$this->testFinder->existsTestableForAnything()) { /** @var $message t3lib_FlashMessage */ $message = t3lib_div::makeInstance('t3lib_FlashMessage', $this->translate('could_not_find_exts_with_tests'), '', t3lib_FlashMessage::WARNING); $this->outputService->output($message->render()); return; } $this->createExtensionSelector(); $selectedExtensionKey = $this->getAndSaveSelectedTestableKey(); $output = ''; if ($selectedExtensionKey !== Tx_Phpunit_Testable::ALL_EXTENSIONS) { $output .= $this->createTestCaseSelector($selectedExtensionKey) . $this->createTestSelector($selectedExtensionKey); } $output .= $this->createCheckboxes(); $this->outputService->output($output); }
/** * Renders the intro screen for the function "Run tests". * * @return void */ protected function renderRunTestsIntro() { if (!$this->testFinder->existsTestableForAnything()) { /** @var FlashMessage $message */ $message = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $this->translate('could_not_find_exts_with_tests'), '', FlashMessage::WARNING); $this->outputService->output($message->render()); return; } /** @var FlashMessage $message */ $message = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $this->translate('test_are_run_in_current_backend_context'), '', FlashMessage::WARNING); $this->outputService->output($message->render()); $this->outputService->output('<p><br /></p>'); $this->createExtensionSelector(); $selectedExtensionKey = $this->getAndSaveSelectedTestableKey(); $output = ''; if ($selectedExtensionKey !== Tx_Phpunit_Testable::ALL_EXTENSIONS) { $output .= $this->createTestCaseSelector($selectedExtensionKey) . $this->createTestSelector($selectedExtensionKey); } $output .= $this->createCheckboxes(); $this->outputService->output($output); }