firefly-iii/tests/acceptance/Controllers/Chart/ChartAccountControllerTest.php
2016-04-01 16:46:11 +02:00

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);
}
}