firefly-iii/tests/acceptance/Controllers/Chart/ChartAccountControllerTest.php

60 lines
1.5 KiB
PHP
Raw Normal View History

2016-01-19 23:20:09 -06:00
<?php
/**
* ChartAccountControllerTest.php
* Copyright (C) 2016 Sander Dorigo
*
* 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
2016-02-04 00:30:48 -06:00
* @covers FireflyIII\Http\Controllers\Chart\AccountController::__construct
2016-01-19 23:20:09 -06:00
*/
public function testExpenseAccounts()
{
2016-01-20 02:15:33 -06:00
$this->be($this->user());
2016-01-24 11:11:57 -06:00
$this->call('GET', '/chart/account/expense');
2016-01-20 02:15:33 -06:00
2016-01-24 11:11:57 -06:00
$this->assertResponseStatus(200);
2016-01-19 23:20:09 -06:00
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::frontpage
*/
public function testFrontpage()
{
2016-01-20 02:15:33 -06:00
$this->be($this->user());
2016-01-24 11:11:57 -06:00
$this->call('GET', '/chart/account/frontpage');
2016-01-20 02:15:33 -06:00
2016-01-24 11:11:57 -06:00
$this->assertResponseStatus(200);
2016-01-19 23:20:09 -06:00
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::report
*/
public function testReport()
{
2016-01-20 02:15:33 -06:00
$this->be($this->user());
2016-01-24 11:11:57 -06:00
$this->call('GET', '/chart/account/report/default/20160101/20160131/1');
2016-01-20 02:15:33 -06:00
2016-01-24 11:11:57 -06:00
$this->assertResponseStatus(200);
2016-01-19 23:20:09 -06:00
}
/**
* @covers FireflyIII\Http\Controllers\Chart\AccountController::single
*/
public function testSingle()
{
2016-01-20 02:15:33 -06:00
$this->be($this->user());
2016-01-24 11:11:57 -06:00
$this->call('GET', '/chart/account/1');
2016-01-20 02:15:33 -06:00
2016-01-24 11:11:57 -06:00
$this->assertResponseStatus(200);
2016-01-19 23:20:09 -06:00
}
}