. */ declare(strict_types=1); namespace Tests\Feature\Controllers\Report; use FireflyIII\Repositories\Account\AccountTaskerInterface; use Tests\TestCase; /** * Class AccountControllerTest * * @SuppressWarnings(PHPMD.TooManyPublicMethods) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class AccountControllerTest extends TestCase { /** * @covers \FireflyIII\Http\Controllers\Report\AccountController::general */ public function testGeneral() { $return = [ 'accounts' => [], 'start' => '0', 'end' => '0', 'difference' => '0', ]; $tasker = $this->mock(AccountTaskerInterface::class); $tasker->shouldReceive('getAccountReport')->andReturn($return); $this->be($this->user()); $response = $this->get(route('report-data.account.general', ['1', '20120101', '20120131'])); $response->assertStatus(200); } }