Large refactor of HTTP and Console stack.

This commit is contained in:
Taylor Otwell
2014-10-20 11:14:41 -05:00
parent 834cb7530d
commit 4301348646
19 changed files with 179 additions and 356 deletions

View File

@@ -9,9 +9,9 @@ class ExampleTest extends TestCase {
*/
public function testBasicExample()
{
$crawler = $this->client->request('GET', '/');
$response = $this->call('GET', '/');
$this->assertTrue($this->client->getResponse()->isOk());
$this->assertEquals(200, $response->getStatusCode());
}
}

View File

@@ -5,15 +5,11 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase {
/**
* Creates the application.
*
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$unitTesting = true;
$testEnvironment = 'testing';
return require __DIR__.'/../bootstrap/start.php';
return require __DIR__.'/../bootstrap/app.php';
}
}