Files
firefly-iii/tests/Feature/Controllers/Report/AccountControllerTest.php

47 lines
1.1 KiB
PHP
Raw Normal View History

2017-02-12 18:40:39 +01:00
<?php
/**
* AccountControllerTest.php
* Copyright (c) 2017 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.
*/
2017-07-08 06:28:44 +02:00
declare(strict_types=1);
2017-02-12 18:40:39 +01:00
namespace Tests\Feature\Controllers\Report;
2017-03-12 21:24:34 +01:00
use FireflyIII\Repositories\Account\AccountTaskerInterface;
2017-02-12 18:40:39 +01:00
use Tests\TestCase;
2017-03-12 21:24:34 +01:00
/**
* Class AccountControllerTest
*
* @package Tests\Feature\Controllers\Report
*/
2017-02-12 18:40:39 +01:00
class AccountControllerTest extends TestCase
{
/**
* @covers \FireflyIII\Http\Controllers\Report\AccountController::general
*/
public function testGeneral()
{
2017-03-12 21:24:34 +01:00
$return = [
'accounts' => [],
'start' => '0',
'end' => '0',
'difference' => '0',
];
$tasker = $this->mock(AccountTaskerInterface::class);
$tasker->shouldReceive('getAccountReport')->andReturn($return);
2017-02-12 18:40:39 +01:00
$this->be($this->user());
$response = $this->get(route('report-data.account.general', ['1', '20120101', '20120131']));
$response->assertStatus(200);
}
2017-02-16 22:33:32 +01:00
}