Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed tests
James Colebf35ecc07ada
diff --git a/tests/Feature/Controllers/SearchControllerTest.php b/tests/Feature/Controllers/SearchControllerTest.phpindex babcefa82c..e0eeb52d6b 100644--- a/tests/Feature/Controllers/SearchControllerTest.php+++ b/tests/Feature/Controllers/SearchControllerTest.php@@ -26,11 +26,14 @@ class SearchControllerTest extends TestCase{$search = $this->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();+ $search->shouldReceive('parseQuery')->once();+ $search->shouldReceive('hasModifiers')->once()->andReturn(false);+ $search->shouldReceive('getWordsAsString')->once()->andReturn('test');+ $search->shouldReceive('searchTransactions')->andReturn(new Collection)->once();+ $search->shouldReceive('searchBudgets')->andReturn(new Collection)->once();+ $search->shouldReceive('searchTags')->andReturn(new Collection)->once();+ $search->shouldReceive('searchCategories')->andReturn(new Collection)->once();+ $search->shouldReceive('searchAccounts')->andReturn(new Collection)->once();$this->be($this->user());$response = $this->get(route('search.index') . '?q=test');$response->assertStatus(200);