mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-06-19 20:39:19 +00:00
Initial Commit !
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
17
app/tests/ExampleTest.php
Executable file
17
app/tests/ExampleTest.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class ExampleTest extends TestCase {
|
||||
|
||||
/**
|
||||
* A basic functional test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBasicExample()
|
||||
{
|
||||
$crawler = $this->client->request('GET', '/');
|
||||
|
||||
$this->assertTrue($this->client->getResponse()->isOk());
|
||||
}
|
||||
|
||||
}
|
19
app/tests/TestCase.php
Executable file
19
app/tests/TestCase.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class TestCase extends Illuminate\Foundation\Testing\TestCase {
|
||||
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$unitTesting = true;
|
||||
|
||||
$testEnvironment = 'testing';
|
||||
|
||||
return require __DIR__.'/../../bootstrap/start.php';
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user