mock('FireflyIII\Support\Search\SearchInterface'); $searcher->shouldReceive('searchTransactions')->once()->with(['test'])->andReturn(new Collection); $searcher->shouldReceive('searchAccounts')->once()->with(['test'])->andReturn(new Collection); $searcher->shouldReceive('searchCategories')->once()->with(['test'])->andReturn(new Collection); $searcher->shouldReceive('searchBudgets')->once()->with(['test'])->andReturn(new Collection); $searcher->shouldReceive('searchTags')->once()->with(['test'])->andReturn(new Collection); $this->be($this->user()); $this->call('GET', '/search?q=test&search='); $this->assertResponseStatus(200); } }