Skip to content

Firefly III: a personal finances manager

Fixed some things so coveralls will fire.

James Cole0afe3c48a193
diff --git a/app/tests/AccountControllerTest.php b/app/tests/AccountControllerTest.php
index dbc9a98d18..cb772a8f28 100644
--- a/app/tests/AccountControllerTest.php
+++ b/app/tests/AccountControllerTest.php
@@ -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()
+ {
+ }
}
diff --git a/app/tests/TestCase.php b/app/tests/TestCase.php
index 872cc48bcc..08770a901e 100644
--- a/app/tests/TestCase.php
+++ b/app/tests/TestCase.php
@@ -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';
- }
-
- public function setUp()
- {
- parent::setUp();
- f::loadFactories(__DIR__ . '/factories');
+ return require __DIR__.'/../../bootstrap/start.php';
}
-
- /**
- * @param $class
- *
- * @return \Mockery\MockInterface
- */
- public function mock($class)
- {
- $mock = Mockery::mock($class);
-
- $this->app->instance($class, $mock);
-
- return $mock;
- }
-
-}
+}
\ No newline at end of file
diff --git a/composer.json b/composer.json
index e8da70cfde..d1f65f2539 100644
--- a/composer.json
+++ b/composer.json
@@ -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": [