trait WithCachedRoutes

Methods

void
setUpWithCachedRoutes()

After creating the routes once, we can cache them for the remaining tests.

void
tearDownWithCachedRoutes()

Reset the route service provider so it's not defaulting to loading cached routes.

void
markRoutesCached(Application $app)

Inform the container to treat routes as cached.

Details

at line 15
protected void setUpWithCachedRoutes()

After creating the routes once, we can cache them for the remaining tests.

Return Value

void

at line 34
protected void tearDownWithCachedRoutes()

Reset the route service provider so it's not defaulting to loading cached routes.

This is helpful if some of the tests in the suite apply this trait while others do not.

Return Value

void

at line 42
protected void markRoutesCached(Application $app)

Inform the container to treat routes as cached.

Parameters

Application $app

Return Value

void