Compartmentalised all tests.

This commit is contained in:
James Cole
2015-05-23 19:41:54 +02:00
parent 422f429725
commit 1ec11e3e2e
27 changed files with 496 additions and 20 deletions

View File

@@ -28,6 +28,9 @@ class ChartAccountControllerTest extends TestCase
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::all
*/
public function testAll()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -64,6 +67,9 @@ class ChartAccountControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::all
*/
public function testAllShared()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -93,6 +99,9 @@ class ChartAccountControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::frontpage
*/
public function testFrontpage()
{
$accounts = new Collection([FactoryMuffin::create('FireflyIII\Models\Account')]);
@@ -110,6 +119,9 @@ class ChartAccountControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::single
*/
public function testSingle()
{
$account = FactoryMuffin::create('FireflyIII\Models\Account');

View File

@@ -30,6 +30,9 @@ class ChartBillControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BillController::frontpage
*/
public function testFrontpage()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -63,6 +66,9 @@ class ChartBillControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BillController::single
*/
public function testSingle()
{
$bill = FactoryMuffin::create('FireflyIII\Models\Bill');

View File

@@ -27,6 +27,9 @@ class ChartBudgetControllerTest extends TestCase
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::budget
*/
public function testBudget()
{
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
@@ -38,6 +41,9 @@ class ChartBudgetControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::budgetLimit
*/
public function testBudgetLimit()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -68,6 +74,9 @@ class ChartBudgetControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::frontpage
*/
public function testFrontpage()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -116,6 +125,9 @@ class ChartBudgetControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::year
*/
public function testYear()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -136,6 +148,9 @@ class ChartBudgetControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::year
*/
public function testYearShared()
{
$user = FactoryMuffin::create('FireflyIII\User');

View File

@@ -26,6 +26,9 @@ class ChartCategoryControllerTest extends TestCase
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::all
*/
public function testAll()
{
@@ -38,6 +41,9 @@ class ChartCategoryControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::frontpage
*/
public function testFrontpage()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -62,6 +68,9 @@ class ChartCategoryControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::month
*/
public function testMonth()
{
$category = FactoryMuffin::create('FireflyIII\Models\Category');
@@ -71,6 +80,9 @@ class ChartCategoryControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::year
*/
public function testYear()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -89,6 +101,9 @@ class ChartCategoryControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::year
*/
public function testYearShared()
{
$user = FactoryMuffin::create('FireflyIII\User');

View File

@@ -25,6 +25,9 @@ class ChartPiggyBankControllerTest extends TestCase
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\PiggyBankController::history
*/
public function testHistory()
{
$piggy = FactoryMuffin::create('FireflyIII\Models\PiggyBank');

View File

@@ -25,6 +25,9 @@ class ChartReportControllerTest extends TestCase
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOut
*/
public function testYearInOut()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -35,6 +38,9 @@ class ChartReportControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOut
*/
public function testYearInOutShared()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -45,6 +51,9 @@ class ChartReportControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized
*/
public function testYearInOutSummarized()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -54,6 +63,9 @@ class ChartReportControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized
*/
public function testYearInOutSummarizedShared()
{
$user = FactoryMuffin::create('FireflyIII\User');