. */ declare(strict_types=1); namespace Tests\Feature\Controllers\Report; use FireflyIII\Helpers\Collection\Balance; use FireflyIII\Helpers\Report\BalanceReportHelperInterface; use Log; use Tests\TestCase; /** * Class BalanceControllerTest * * @SuppressWarnings(PHPMD.TooManyPublicMethods) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class BalanceControllerTest extends TestCase { /** * */ public function setUp() { parent::setUp(); Log::debug(sprintf('Now in %s.', get_class($this))); } /** * @covers \FireflyIII\Http\Controllers\Report\BalanceController::general */ public function testGeneral() { $balance = $this->mock(BalanceReportHelperInterface::class); $balance->shouldReceive('getBalanceReport')->andReturn(new Balance); $this->be($this->user()); $response = $this->get(route('report-data.balance.general', ['1', '20120101', '20120131'])); $response->assertStatus(200); } }