mock(JournalRepositoryInterface::class); $repository = $this->mock(RuleGroupRepositoryInterface::class); $accountRepos = $this->mock(AccountRepositoryInterface::class); $journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal); $this->be($this->user()); $response = $this->get(route('rule-groups.create')); $response->assertStatus(200); $response->assertSee('