diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ExampleTest.php | 20 | ||||
-rw-r--r-- | tests/TestCase.php | 14 |
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php new file mode 100644 index 0000000..2b206c6 --- /dev/null +++ b/tests/ExampleTest.php @@ -0,0 +1,20 @@ +<?php + +use Laravel\Lumen\Testing\DatabaseTransactions; + +class ExampleTest extends TestCase +{ + /** + * A basic test example. + * + * @return void + */ + public function testExample() + { + $this->get('/'); + + $this->assertEquals( + $this->response->getContent(), $this->app->version() + ); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..651d9cb --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,14 @@ +<?php + +class TestCase extends Laravel\Lumen\Testing\TestCase +{ + /** + * Creates the application. + * + * @return \Laravel\Lumen\Application + */ + public function createApplication() + { + return require __DIR__.'/../bootstrap/app.php'; + } +} |