зеркало из https://github.com/nextcloud/cookbook.git
Fix tests
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
672db7b133
Коммит
c3db44dcad
|
@ -178,6 +178,7 @@ class RecipeImplementationTest extends TestCase {
|
|||
$this->ensureCacheCheckTriggered();
|
||||
|
||||
$this->recipeService->method('getRecipesByCategory')->with($cat)->willReturn($recipes);
|
||||
$this->stubFilter->method('apply')->willReturnArgument(0);
|
||||
|
||||
$expected = $this->getExpectedRecipes($recipes);
|
||||
|
||||
|
@ -263,6 +264,7 @@ class RecipeImplementationTest extends TestCase {
|
|||
$this->ensureCacheCheckTriggered();
|
||||
|
||||
$this->recipeService->method('getRecipesByKeywords')->with($keywords)->willReturn($recipes);
|
||||
$this->stubFilter->method('apply')->willReturnArgument(0);
|
||||
|
||||
$expected = $this->getExpectedRecipes($recipes);
|
||||
|
||||
|
@ -336,6 +338,7 @@ class RecipeImplementationTest extends TestCase {
|
|||
$this->ensureCacheCheckTriggered();
|
||||
|
||||
$this->recipeService->expects($this->once())->method('findRecipesInSearchIndex')->with($query)->willReturn($recipes);
|
||||
$this->stubFilter->method('apply')->willReturnArgument(0);
|
||||
|
||||
$expected = $this->getExpectedRecipes($recipes);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче