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
/**
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:02.
*/
@ -15,14 +16,7 @@ class AccountControllerTest extends TestCase
*/
public function setUp()
{
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
parent::setUp();
}
/**
@ -31,6 +25,8 @@ class AccountControllerTest extends TestCase
*/
public function testCreate()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
@ -120,4 +116,12 @@ class AccountControllerTest extends TestCase
'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
use League\FactoryMuffin\Facade as f;
/**
* Class TestCase
*/
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
class TestCase extends Illuminate\Foundation\Testing\TestCase {
/**
* Creates the application.
*
@ -14,33 +11,8 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
*/
public function createApplication()
{
/** @noinspection PhpUnusedLocalVariableInspection */
$unitTesting = true;
/** @noinspection PhpUnusedLocalVariableInspection */
$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": {
"barryvdh/laravel-debugbar": "@stable",
"barryvdh/laravel-ide-helper": "@stable",
"doctrine/dbal": "~2.3"
"doctrine/dbal": "~2.3",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"classmap": [