mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
Refactored a lot of tests.
This commit is contained in:
@@ -50,11 +50,11 @@ class SearchControllerTest extends TestCase
|
||||
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\SearchController
|
||||
* @covers \FireflyIII\Http\Controllers\SearchController
|
||||
*/
|
||||
public function testIndex(): void
|
||||
{
|
||||
$this->mockDefaultSession();
|
||||
$search = $this->mock(SearchInterface::class);
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
|
||||
@@ -70,13 +70,12 @@ class SearchControllerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\SearchController
|
||||
* @covers \FireflyIII\Http\Controllers\SearchController
|
||||
*/
|
||||
public function testSearch(): void
|
||||
{
|
||||
$this->mockDefaultSession();
|
||||
$search = $this->mock(SearchInterface::class);
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
|
||||
$search->shouldReceive('parseQuery')->once();
|
||||
$search->shouldReceive('setLimit')->withArgs([50])->once();
|
||||
|
||||
Reference in New Issue
Block a user