Fixed some things so coveralls will fire.

This commit is contained in:
James Cole
2014-11-18 10:18:50 +01:00
parent 1ab5e923bc
commit 0afe3c48a1
3 changed files with 17 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
<?php <?php
/** /**
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:02. * Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:02.
*/ */
@@ -15,14 +16,7 @@ class AccountControllerTest extends TestCase
*/ */
public function setUp() public function setUp()
{ {
} parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
} }
/** /**
@@ -31,6 +25,8 @@ class AccountControllerTest extends TestCase
*/ */
public function testCreate() public function testCreate()
{ {
// Remove the following lines when you implement this test. // Remove the following lines when you implement this test.
$this->markTestIncomplete( $this->markTestIncomplete(
'This test has not been implemented yet.' 'This test has not been implemented yet.'
@@ -120,4 +116,12 @@ class AccountControllerTest extends TestCase
'This test has not been implemented yet.' 'This test has not been implemented yet.'
); );
} }
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
} }

View File

@@ -1,12 +1,9 @@
<?php <?php
use League\FactoryMuffin\Facade as f;
/** /**
* Class TestCase * Class TestCase
*/ */
class TestCase extends Illuminate\Foundation\Testing\TestCase class TestCase extends Illuminate\Foundation\Testing\TestCase {
{
/** /**
* Creates the application. * Creates the application.
* *
@@ -14,33 +11,8 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
*/ */
public function createApplication() public function createApplication()
{ {
/** @noinspection PhpUnusedLocalVariableInspection */
$unitTesting = true; $unitTesting = true;
/** @noinspection PhpUnusedLocalVariableInspection */
$testEnvironment = 'testing'; $testEnvironment = 'testing';
return require __DIR__.'/../../bootstrap/start.php';
return require __DIR__ . '/../../bootstrap/start.php';
} }
public function setUp()
{
parent::setUp();
f::loadFactories(__DIR__ . '/factories');
}
/**
* @param $class
*
* @return \Mockery\MockInterface
*/
public function mock($class)
{
$mock = Mockery::mock($class);
$this->app->instance($class, $mock);
return $mock;
}
} }

View File

@@ -29,7 +29,8 @@
"require-dev": { "require-dev": {
"barryvdh/laravel-debugbar": "@stable", "barryvdh/laravel-debugbar": "@stable",
"barryvdh/laravel-ide-helper": "@stable", "barryvdh/laravel-ide-helper": "@stable",
"doctrine/dbal": "~2.3" "doctrine/dbal": "~2.3",
"satooshi/php-coveralls": "dev-master"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [