Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Created April 13, 2015 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JeffreyWay/450251a2d528f9a78293 to your computer and use it in GitHub Desktop.
Save JeffreyWay/450251a2d528f9a78293 to your computer and use it in GitHub Desktop.
Access Laravel from a test that uses the Integrated Selenium extension. https://github.com/laracasts/integrated
use Laracasts\Integrated\Extensions\Selenium;
use Laracasts\Integrated\Services\Laravel\Application as Laravel;
class AuthTest extends Selenium
{
use Laravel;
/**
* @tearDown
*/
function cleanDatabase()
{
DB::table('users')->truncate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment