diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php index 3bf4216f7..3c99ba70d 100644 --- a/tests/ExampleTest.php +++ b/tests/ExampleTest.php @@ -1,5 +1,8 @@ call('GET', '/'); - - $this->assertEquals(200, $response->status()); + $this->visit('/') + ->see('Laravel 5'); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index 069f0b84b..824705d03 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,6 +2,13 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase { + /** + * The base URL to use while testing the application. + * + * @var string + */ + protected $baseUrl = 'http://localhost'; + /** * Creates the application. *