Files
firefly-iii/tests/acceptance/Controllers/Report/OperationsControllerTest.php
2016-12-10 16:32:52 +01:00

63 lines
1.6 KiB
PHP

<?php
/**
* OperationsControllerTest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
namespace Report;
use TestCase;
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-12-10 at 05:51:43.
*/
class OperationsControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* @covers \FireflyIII\Http\Controllers\Report\OperationsController::expenses
*/
public function testExpenses()
{
$this->be($this->user());
$this->call('get', route('report-data.operations.expenses', ['1', '20120101', '20120131']));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\Report\OperationsController::income
*/
public function testIncome()
{
$this->be($this->user());
$this->call('get', route('report-data.operations.income', ['1', '20120101', '20120131']));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\Report\OperationsController::operations
*/
public function testOperations()
{
$this->be($this->user());
$this->call('get', route('report-data.operations.operations', ['1', '20120101', '20120131']));
$this->assertResponseStatus(200);
}
}