/** * @test */ public function getLoadedExtensionKeysReturnsKeysThatAreBothLoadedAndRequiredOnlyOnceBelowVersionSix() { if (method_exists('t3lib_extMgm', 'getLoadedExtensionListArray')) { $this->markTestSkipped('This test is available in TYPO3 below version 6.0.'); } $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = 'foo'; $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = 'foo'; $this->assertSame(array('foo'), array_filter($this->fixture->getLoadedExtensionKeys(), array($this, 'keepOnlyFooElements'))); }
/** * @test */ public function getLoadedExtensionKeysReturnsPhpUnitKey() { $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = 'phpunit'; self::assertArrayHasKey('phpunit', array_flip($this->subject->getLoadedExtensionKeys())); }