. */ namespace Tests\Feature\Controllers\Transaction; use FireflyIII\Repositories\Account\AccountRepositoryInterface; use Log; use Tests\TestCase; /** * Class EditControllerTest */ class EditControllerTest extends TestCase { /** * */ public function setUp(): void { parent::setUp(); Log::info(sprintf('Now in %s.', get_class($this))); } public function testEdit(): void { $group = $this->getRandomWithdrawalGroup(); $account = $this->getRandomAsset(); $accountRepos = $this->mock(AccountRepositoryInterface::class); $this->mockDefaultSession(); $accountRepos->shouldReceive('getCashAccount')->atLeast()->once()->andReturn($account); $this->be($this->user()); $response = $this->get(route('transactions.edit', [$group->id])); $response->assertStatus(200); } }