Also covered ProfileController.

This commit is contained in:
James Cole
2014-07-03 09:16:17 +02:00
parent 516fe54bf0
commit 924ec29eaf
6 changed files with 184 additions and 24 deletions

View File

@@ -1,19 +1,29 @@
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase {
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
/**
* Creates the application.
*
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
$unitTesting = true;
/**
* Creates the application.
*
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
$unitTesting = true;
$testEnvironment = 'testing';
$testEnvironment = 'testing';
return require __DIR__.'/../../bootstrap/start.php';
}
return require __DIR__ . '/../../bootstrap/start.php';
}
public function mock($class)
{
$mock = Mockery::mock($class);
$this->app->instance($class, $mock);
return $mock;
}
}