Skip to content

Commit

Permalink
phpunit MockeryTestCase extended classes setUp return fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Nov 8, 2023
1 parent 367030a commit 5eb3096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/php/FacetedSearch/Product/SearchProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function ($arg) use ($properties) {
return $filter;
}

protected function setUp()
protected function setUp(): void
{
$this->database = Mockery::mock(Db::class);
$this->context = Mockery::mock(Context::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/php/FacetedSearch/Product/SearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SearchTest extends MockeryTestCase
*/
private $search;

protected function setUp()
protected function setUp(): void
{
$mock = Mockery::mock(Configuration::class);
$mock->shouldReceive('get')
Expand Down

0 comments on commit 5eb3096

Please sign in to comment.