trait WithCachedRoutes (View source)

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

protected void setUpWithCachedRoutes()

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

Return Value

void

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

protected void markRoutesCached(Application $app)

Inform the container to treat routes as cached.

Parameters

Application $app

Return Value

void