FileAccess Orion

CommonPluginManagerTrait

Trait for testing plugin managers for v2-v3 compatibility

To use this trait:

  • implement the getPluginManager() method to return your plugin manager
  • implement the getV2InvalidPluginException() method to return the class validatePlugin() throws under v2

Table of Contents

aliasProvider()  : mixed
testInstanceOfMatches()  : mixed
testLoadingInvalidElementRaisesException()  : mixed
testPluginAliasesResolve()  : mixed
testRegisteringInvalidElementRaisesException()  : mixed
testShareByDefaultAndSharedByDefault()  : mixed
getInstanceOf()  : string
Returns the value the instanceOf property has been set to
getPluginManager()  : AbstractPluginManager
Returns the plugin manager to test
getServiceNotFoundException()  : mixed
getV2InvalidPluginException()  : mixed
Returns the FQCN of the exception thrown under v2 by `validatePlugin()`

Methods

testLoadingInvalidElementRaisesException()

public testLoadingInvalidElementRaisesException() : mixed
Return values
mixed

testPluginAliasesResolve()

public testPluginAliasesResolve(mixed $alias, mixed $expected) : mixed
Parameters
$alias : mixed
$expected : mixed
Tags
dataProvider

aliasProvider

Return values
mixed

testRegisteringInvalidElementRaisesException()

public testRegisteringInvalidElementRaisesException() : mixed
Return values
mixed

testShareByDefaultAndSharedByDefault()

public testShareByDefaultAndSharedByDefault() : mixed
Return values
mixed

getInstanceOf()

Returns the value the instanceOf property has been set to

protected abstract getInstanceOf() : string
Return values
string

getV2InvalidPluginException()

Returns the FQCN of the exception thrown under v2 by `validatePlugin()`

protected abstract getV2InvalidPluginException() : mixed
Return values
mixed

Search results