mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
<?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);
|
|
}
|
|
}
|