TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 configurePluginWorksForMinimalisticSetup ()
 
 configurePluginCreatesCorrectDefaultTypoScriptSetup ()
 
 configurePluginWorksForASingleControllerAction ()
 
 configurePluginThrowsExceptionIfExtensionNameIsEmpty ()
 
 configurePluginThrowsExceptionIfPluginNameIsEmpty ()
 
 configurePluginRespectsDefaultActionAsANonCacheableAction ()
 
 configurePluginRespectsNonDefaultActionAsANonCacheableAction ()
 
 configurePluginWorksForMultipleControllerActionsWithCacheableActionAsDefault ()
 
 configurePluginWorksForMultipleControllerActionsWithNonCacheableActionAsDefault ()
 
 registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUnderscoredExtensionNameAndIconPathNotGiven ()
 
 registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUpperCameCasedExtensionNameAndIconPathNotGiven ()
 
 registerPluginTriggersAddPluginWhichSetsPluginIconPathIfIconPathIsGiven ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for class

Definition at line 19 of file ExtensionUtilityTest.php.

Member Function Documentation

◆ configurePluginCreatesCorrectDefaultTypoScriptSetup()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginCreatesCorrectDefaultTypoScriptSetup ( )
Test:
See also
::registerPlugin

Definition at line 76 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginRespectsDefaultActionAsANonCacheableAction()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginRespectsDefaultActionAsANonCacheableAction ( )
Test:
See also
::registerPlugin

Definition at line 135 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginRespectsNonDefaultActionAsANonCacheableAction()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginRespectsNonDefaultActionAsANonCacheableAction ( )
Test:
See also
::registerPlugin

Definition at line 163 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginThrowsExceptionIfExtensionNameIsEmpty()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginThrowsExceptionIfExtensionNameIsEmpty ( )
Test:
See also
::registerPlugin

Definition at line 114 of file ExtensionUtilityTest.php.

References TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginThrowsExceptionIfPluginNameIsEmpty()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginThrowsExceptionIfPluginNameIsEmpty ( )
Test:
See also
::registerPlugin

Definition at line 125 of file ExtensionUtilityTest.php.

References TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginWorksForASingleControllerAction()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginWorksForASingleControllerAction ( )
Test:
See also
::registerPlugin

Definition at line 88 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginWorksForMinimalisticSetup()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginWorksForMinimalisticSetup ( )
Test:
See also
::registerPlugin

Definition at line 60 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginWorksForMultipleControllerActionsWithCacheableActionAsDefault()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginWorksForMultipleControllerActionsWithCacheableActionAsDefault ( )
Test:
See also
::registerPlugin

Definition at line 191 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ configurePluginWorksForMultipleControllerActionsWithNonCacheableActionAsDefault()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::configurePluginWorksForMultipleControllerActionsWithNonCacheableActionAsDefault ( )
Test:
See also
::registerPlugin

Definition at line 224 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin().

◆ registerPluginTriggersAddPluginWhichSetsPluginIconPathIfIconPathIsGiven()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::registerPluginTriggersAddPluginWhichSetsPluginIconPathIfIconPathIsGiven ( )

Tests method combination of registerPlugin() and its dependency addPlugin() to verify plugin icon path resolving works.

Test:

Definition at line 303 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\registerPlugin().

◆ registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUnderscoredExtensionNameAndIconPathNotGiven()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUnderscoredExtensionNameAndIconPathNotGiven ( )

Tests method combination of registerPlugin() and its dependency addPlugin() to verify plugin icon path resolving works.

Test:

Definition at line 261 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\registerPlugin().

◆ registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUpperCameCasedExtensionNameAndIconPathNotGiven()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUpperCameCasedExtensionNameAndIconPathNotGiven ( )

Tests method combination of registerPlugin() and its dependency addPlugin() to verify plugin icon path resolving works.

Test:

Definition at line 282 of file ExtensionUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Extbase\Utility\ExtensionUtility\registerPlugin().

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Utility\ExtensionUtilityTest::setUp ( )

Definition at line 21 of file ExtensionUtilityTest.php.

References $GLOBALS.