/** * @test */ public function hasCoreTestsForNoCoreTestsReturnsFalse() { if (file_exists(PATH_site . 'tests/') || file_exists(PATH_site . 'typo3_src/tests/')) { $this->markTestSkipped('This test can only be run if there are no Core tests.'); } $this->assertFalse($this->fixture->hasCoreTests()); }
/** * @test */ public function createIconStyleForCoreReturnsTypo3Icon() { $testFinder = new Tx_Phpunit_Service_TestFinder(); if (!$testFinder->hasCoreTests()) { $this->markTestSkipped('This test can only be run if the TYPO3 Core unit tests are present.'); } $this->assertContains('url(' . t3lib_extMgm::extRelPath('phpunit') . 'Resources/Public/Icons/Typo3.png)', $this->fixture->createIconStyle(Tx_Phpunit_Testable::CORE_KEY)); }