PHP Class Elgg\ViewsServiceTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: elgg/elgg

Protected Properties

Property Type Description
$hooks PluginHooksService
$views ViewsService
$viewsDir

Public Methods

Method Description
getExampleNormalizedViews ( )
setUp ( )
testCanAlterViewInput ( )
testCanAlterViewOutput ( )
testCanExtendViews ( )
testCanGetViewRenderingList ( )
testCanListViews ( )
testCanRegisterViewsAsCacheable ( )
testCanReplaceViews ( )
testCanSetViewPathsViaSpec ( )
testCanSetViewsDirs ( )
testDefaultNormalizeBehavior ( $canonical, $alias )
testDoesNotUsePhpToRenderStaticViews ( )
testEmitsDeprecationWarningWhenOldViewNameIsReferenced ( )
testRegistersPhpFilesAsViews ( )
testRegistersStaticFilesAsViews ( )
testStaticViewsAreAlwaysCacheable ( )
testThrowsOnCircularAliases ( )
testUsesPhpToRenderNonStaticViews ( )
testViewCanOnlyExistIfString ( )
testViewsCanExistBasedOnViewtypeFallback ( )
testViewtypesCanFallBack ( )

Method Details

getExampleNormalizedViews() public method

setUp() public method

public setUp ( )

testCanAlterViewInput() public method

testCanAlterViewOutput() public method

testCanExtendViews() public method

public testCanExtendViews ( )

testCanGetViewRenderingList() public method

testCanListViews() public method

public testCanListViews ( )

testCanRegisterViewsAsCacheable() public method

testCanReplaceViews() public method

public testCanReplaceViews ( )

testCanSetViewPathsViaSpec() public method

testCanSetViewsDirs() public method

public testCanSetViewsDirs ( )

testDefaultNormalizeBehavior() public method

public testDefaultNormalizeBehavior ( $canonical, $alias )

testDoesNotUsePhpToRenderStaticViews() public method

testEmitsDeprecationWarningWhenOldViewNameIsReferenced() public method

testRegistersPhpFilesAsViews() public method

testRegistersStaticFilesAsViews() public method

testStaticViewsAreAlwaysCacheable() public method

testThrowsOnCircularAliases() public method

testUsesPhpToRenderNonStaticViews() public method

testViewCanOnlyExistIfString() public method

testViewsCanExistBasedOnViewtypeFallback() public method

testViewtypesCanFallBack() public method

Property Details

$hooks protected property

protected PluginHooksService,elgg $hooks
return PluginHooksService

$views protected property

protected ViewsService,elgg $views
return ViewsService

$viewsDir protected property

protected $viewsDir