commit iniziale

This commit is contained in:
Marco Cavalli 2023-10-05 11:54:33 +02:00
parent 9e364c6696
commit a40cafc383
46 changed files with 9556 additions and 1 deletions

23
tests/ExampleTest.php Normal file
View file

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

18
tests/TestCase.php Normal file
View file

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