mock(SearchInterface::class); $search->shouldReceive('setLimit')->once(); $search->shouldReceive('searchTransactions')->andReturn(new Collection)->withArgs([['test']])->once(); $search->shouldReceive('searchBudgets')->andReturn(new Collection)->withArgs([['test']])->once(); $search->shouldReceive('searchTags')->andReturn(new Collection)->withArgs([['test']])->once(); $search->shouldReceive('searchCategories')->andReturn(new Collection)->withArgs([['test']])->once(); $search->shouldReceive('searchAccounts')->andReturn(new Collection)->withArgs([['test']])->once(); $this->be($this->user()); $response = $this->get(route('search.index') . '?q=test'); $response->assertStatus(200); $response->assertSee('