Problem? With filters in Codecept Functional tests

I was trying to test the security through filters in a functional test in Laravel4 but the filters wasn’t working so I look up and it’s not necessarily a problem. By default codecept disables the filters while testing. If you, like me, need those filters working on some tests just add the next instruction at the beginning of the cept.

\Route::enableFilters();

That instruction does what it says on the tin, enables the filters for the test.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s