PHP Class SebastiaanLuca\Router\Tests\ExtendedRouterTest

Inheritance: extends TestCase
Datei anzeigen Open project: sebastiaanluca/laravel-router

Public Methods

Method Description
testDefaultRouterGotSwappedWithExtendedRouter ( )
testItAddsMiddlewareToANamedRoute ( )
testItAddsMiddlewareToANamedRouteUsingAWildcard ( )
testItAddsPreviouslyRegisteredMiddlewareToRoutes ( ) After bootstrapping the service providers, the registered (but not yet applied) middleware should be added to the corresponding routes.
testItFiltersOutDuplicateMiddlewareWhenRegistering ( )
testItRegistersMiddleware ( )
testItRegistersMiddlewareForMultipleRoutes ( )
testItRegistersMultipleMiddleware ( )
testRouteFacadeGotSwappedWithExtendedRouter ( )

Protected Methods

Method Description
createExtendedRouter ( boolean $partial = true ) : Mockery\MockInterface Create a new router.

Method Details

createExtendedRouter() protected method

Create a new router.
protected createExtendedRouter ( boolean $partial = true ) : Mockery\MockInterface
$partial boolean
return Mockery\MockInterface

testDefaultRouterGotSwappedWithExtendedRouter() public method

testItAddsMiddlewareToANamedRoute() public method

testItAddsMiddlewareToANamedRouteUsingAWildcard() public method

testItAddsPreviouslyRegisteredMiddlewareToRoutes() public method

After bootstrapping the service providers, the registered (but not yet applied) middleware should be added to the corresponding routes.

testItFiltersOutDuplicateMiddlewareWhenRegistering() public method

testItRegistersMiddleware() public method

testItRegistersMiddlewareForMultipleRoutes() public method

testItRegistersMultipleMiddleware() public method

testRouteFacadeGotSwappedWithExtendedRouter() public method