mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Remove tests.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
@@ -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);
|
||||
|
||||
}
|
||||
}
|
@@ -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);
|
||||
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user