Working on the default app structure.

This commit is contained in:
Taylor Otwell
2014-08-18 22:46:16 -05:00
parent a5f4e74889
commit 9aae50e501
33 changed files with 33 additions and 21 deletions

17
tests/ExampleTest.php Normal file
View 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
tests/TestCase.php Normal file
View 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';
}
}