Some code cleanup.

This commit is contained in:
James Cole
2015-05-26 08:17:58 +02:00
parent c3c59d0627
commit 812aae358f
22 changed files with 49 additions and 382 deletions

View File

@@ -76,6 +76,7 @@ class ChartBudgetControllerTest extends TestCase
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::frontpage
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testFrontpage()
{

View File

@@ -8,6 +8,8 @@ use League\FactoryMuffin\Facade as FactoryMuffin;
/**
* Class ReminderHelperTest
*
* @SuppressWarnings(PHPMD.TooManyMethods)
*/
class ReminderHelperTest extends TestCase
{

View File

@@ -107,6 +107,7 @@ class ReportHelperTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportHelper::getBillReport
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testGetBillReport()
{
@@ -214,6 +215,7 @@ class ReportHelperTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportHelper::getExpenseReport
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testGetExpenseReport()
{
@@ -278,6 +280,7 @@ class ReportHelperTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportHelper::getIncomeReport
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testGetIncomeReport()
{

View File

@@ -40,6 +40,7 @@ class ReportQueryTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportQuery::expenseInPeriodCorrected
* @covers FireflyIII\Helpers\Report\ReportQuery::queryJournalsWithTransactions
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testExpenseInPeriodCorrected()
{
@@ -108,6 +109,7 @@ class ReportQueryTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportQuery::expenseInPeriodCorrected
* @covers FireflyIII\Helpers\Report\ReportQuery::queryJournalsWithTransactions
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testExpenseInPeriodCorrectedShared()
{
@@ -228,6 +230,7 @@ class ReportQueryTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportQuery::incomeInPeriodCorrected
* @covers FireflyIII\Helpers\Report\ReportQuery::queryJournalsWithTransactions
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testIncomeInPeriodCorrected()
{
@@ -295,6 +298,7 @@ class ReportQueryTest extends TestCase
/**
* @covers FireflyIII\Helpers\Report\ReportQuery::incomeInPeriodCorrected
* @covers FireflyIII\Helpers\Report\ReportQuery::queryJournalsWithTransactions
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testIncomeInPeriodCorrectedShared()
{

View File

@@ -69,7 +69,7 @@ class AccountModelTest extends TestCase
{
// create account:
$account = FactoryMuffin::create('FireflyIII\Models\Account');
$user = FactoryMuffin::create('FireflyIII\User');
FactoryMuffin::create('FireflyIII\User');
// search for account with the same properties:
$search = [
@@ -118,7 +118,7 @@ class AccountModelTest extends TestCase
{
// create account:
$account = FactoryMuffin::create('FireflyIII\Models\Account');
$user = FactoryMuffin::create('FireflyIII\User');
FactoryMuffin::create('FireflyIII\User');
// search for account with the same properties:
$search = [

View File

@@ -5,6 +5,7 @@ use League\FactoryMuffin\Facade as FactoryMuffin;
/**
* Class TransactionJournalModelTest
* @SuppressWarnings(PHPMD.TooManyMethods)
*/
class TransactionJournalModelTest extends TestCase
{

View File

@@ -80,6 +80,7 @@ class CategoryRepositoryTest extends TestCase
/**
* @covers FireflyIII\Repositories\Category\CategoryRepository::getCategoriesAndExpensesCorrected
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function testGetCategoriesAndExpensesCorrected()
{