Lumen opgezet met eenvoudige modelklasse

This commit is contained in:
2017-06-05 15:36:05 +02:00
commit ebecdcc485
4297 changed files with 495115 additions and 0 deletions

21
api/tests/ExampleTest.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
use Laravel\Lumen\Testing\DatabaseMigrations;
use Laravel\Lumen\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testExample()
{
$this->get('/');
$this->assertEquals(
$this->app->version(), $this->response->getContent()
);
}
}

14
api/tests/TestCase.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
abstract class TestCase extends Laravel\Lumen\Testing\TestCase
{
/**
* Creates the application.
*
* @return \Laravel\Lumen\Application
*/
public function createApplication()
{
return require __DIR__.'/../bootstrap/app.php';
}
}