Remove tests.

This commit is contained in:
James Cole
2016-05-15 15:01:29 +02:00
parent ec2027b8db
commit f373c72679
31 changed files with 86 additions and 3142 deletions

View File

@@ -1,59 +0,0 @@
<?php
/**
* ChartAccountControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-01-19 at 15:39:57.
*/
class ChartAccountControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::expenseAccounts
* @covers FireflyIII\Http\Controllers\Chart\AccountController::__construct
*/
public function testExpenseAccounts()
{
$this->be($this->user());
$this->call('GET', '/chart/account/expense');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::frontpage
*/
public function testFrontpage()
{
$this->be($this->user());
$this->call('GET', '/chart/account/frontpage');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::report
*/
public function testReport()
{
$this->be($this->user());
$this->call('GET', '/chart/account/report/default/20160101/20160131/1');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::single
*/
public function testSingle()
{
$this->be($this->user());
$this->call('GET', '/chart/account/1');
$this->assertResponseStatus(200);
}
}

View File

@@ -1,38 +0,0 @@
<?php
/**
* ChartBillControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-01-19 at 15:39:57.
*/
class ChartBillControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\Chart\BillController::frontpage
* @covers FireflyIII\Http\Controllers\Chart\BillController::__construct
*/
public function testFrontpage()
{
$this->be($this->user());
$this->call('GET', '/chart/bill/frontpage');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BillController::single
*/
public function testSingle()
{
$this->be($this->user());
$this->call('GET', '/chart/bill/1');
$this->assertResponseStatus(200);
}
}

View File

@@ -1,77 +0,0 @@
<?php
/**
* ChartBudgetControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
use Carbon\Carbon;
use FireflyIII\Models\Budget;
use Illuminate\Support\Collection;
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-01-19 at 15:39:57.
*/
class ChartBudgetControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::budget
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::__construct
*/
public function testBudget()
{
$repository = $this->mock('FireflyIII\Repositories\Budget\BudgetRepositoryInterface');
$repository->shouldReceive('spentPerDay')->once()->andReturn([]);
$repository->shouldReceive('getFirstBudgetLimitDate')->once()->andReturn(new Carbon);
$this->be($this->user());
$this->call('GET', '/chart/budget/1');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::budgetLimit
*/
public function testBudgetLimit()
{
$this->be($this->user());
$this->call('GET', '/chart/budget/1/1');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::frontpage
*/
public function testFrontpage()
{
$this->be($this->user());
$this->call('GET', '/chart/budget/frontpage');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::multiYear
*/
public function testMultiYear()
{
$budget = new Budget;
$budget->id = 1;
$budget->dateFormatted = '2015';
$budget->budgeted = 120;
$repository = $this->mock('FireflyIII\Repositories\Budget\BudgetRepositoryInterface');
$repository->shouldReceive('getBudgetedPerYear')->once()->andReturn(new Collection([$budget]));
$repository->shouldReceive('getBudgetsAndExpensesPerYear')->once()->andReturn([]);
$this->be($this->user());
$this->call('GET', '/chart/budget/multi-year/default/20150101/20160101/1/1');
$this->assertResponseStatus(200);
}
}

View File

@@ -1,106 +0,0 @@
<?php
/**
* ChartCategoryControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
use Illuminate\Support\Collection;
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-01-19 at 15:39:57.
*/
class ChartCategoryControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::all
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::__construct
*/
public function testAll()
{
$this->be($this->user());
$this->call('GET', '/chart/category/1/all');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::currentPeriod
*/
public function testCurrentPeriod()
{
$this->be($this->user());
$this->call('GET', '/chart/category/1/period');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::earnedInPeriod
*/
public function testEarnedInPeriod()
{
$repository = $this->mock('FireflyIII\Repositories\Category\CategoryRepositoryInterface');
$repository->shouldReceive('earnedForAccountsPerMonth')->once()->andReturn(new Collection);
$this->be($this->user());
$this->call('GET', '/chart/category/earned-in-period/default/20150101/20151231/1');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::frontpage
*/
public function testFrontpage()
{
$repository = $this->mock('FireflyIII\Repositories\Category\CategoryRepositoryInterface');
$repository->shouldReceive('spentForAccountsPerMonth')->once()->andReturn(new Collection);
$repository->shouldReceive('sumSpentNoCategory')->once()->andReturn('120');
$this->be($this->user());
$this->call('GET', '/chart/category/frontpage');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::multiYear
*/
public function testMultiYear()
{
$repository = $this->mock('FireflyIII\Repositories\Category\CategoryRepositoryInterface');
$repository->shouldReceive('listMultiYear')->once()->andReturn(new Collection);
$this->be($this->user());
$this->call('GET', '/chart/category/multi-year/default/20150101/20151231/1/1');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::specificPeriod
*/
public function testSpecificPeriod()
{
$this->be($this->user());
$this->call('GET', '/chart/category/1/period/20150101');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\CategoryController::spentInPeriod
*/
public function testSpentInPeriod()
{
$repository = $this->mock('FireflyIII\Repositories\Category\CategoryRepositoryInterface');
$repository->shouldReceive('spentForAccountsPerMonth')->once()->andReturn(new Collection);
$this->be($this->user());
$this->call('GET', '/chart/category/spent-in-period/default/20150101/20151231/1');
$this->assertResponseStatus(200);
}
}

View File

@@ -1,26 +0,0 @@
<?php
/**
* ChartPiggyBankControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-01-19 at 15:39:57.
*/
class ChartPiggyBankControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\Chart\PiggyBankController::history
* @covers FireflyIII\Http\Controllers\Chart\PiggyBankController::__construct
*/
public function testHistory()
{
$this->be($this->user());
$this->call('GET', '/chart/piggy-bank/1');
$this->assertResponseStatus(200);
}
}

View File

@@ -1,43 +0,0 @@
<?php
/**
* ChartReportControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-01-19 at 15:39:57.
*/
class ChartReportControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOut
* @covers FireflyIII\Http\Controllers\Chart\ReportController::__construct
*/
public function testYearInOut()
{
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
$repository->shouldReceive('spentPerMonth')->once()->andReturn([]);
$repository->shouldReceive('earnedPerMonth')->once()->andReturn([]);
$this->be($this->user());
$this->call('GET', '/chart/report/in-out/default/20150101/20151231/1');
$this->assertResponseStatus(200);
}
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized
*/
public function testYearInOutSummarized()
{
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
$repository->shouldReceive('spentPerMonth')->once()->andReturn([]);
$repository->shouldReceive('earnedPerMonth')->once()->andReturn([]);
$this->be($this->user());
$this->call('GET', '/chart/report/in-out-sum/default/20150101/20151231/1');
$this->assertResponseStatus(200);
}
}