Began working on tests

This commit is contained in:
Dave Earley 2016-04-26 22:33:16 +01:00
parent f6f26068da
commit 304b9c6e1f
2 changed files with 13 additions and 8 deletions

View File

@ -1,5 +1,7 @@
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
/**
@ -9,5 +11,7 @@ class ExampleTest extends TestCase
*/
public function testBasicExample()
{
$this->visit('/')
->see('Login');
}
}

View File

@ -1,9 +1,12 @@
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
protected $baseUrl = 'http://dev.attendize.com';
/**
* The base URL to use while testing the application.
*
* @var string
*/
protected $baseUrl = 'http://localhost';
/**
* Creates the application.
*
@ -12,9 +15,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
return $app;
}
}
}