Get Laravel Dusk installed using PhantomJS so it can work with Travis CI easily
This commit is contained in:
parent
db44423c2e
commit
94969e7f97
25 changed files with 314 additions and 1123 deletions
20
tests/CreatesApplication.php
Normal file
20
tests/CreatesApplication.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
return $app;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue