Skip to content

Commit

Permalink
MockeryTestCase extends setUp must return void
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Dec 5, 2023
1 parent d2107a1 commit 4cb8254
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/php/FacetedSearch/Filters/BlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BlockTest extends MockeryTestCase
/** @var Block */
private $block;

protected function setUp()
protected function setUp(): void
{
$mock = Mockery::mock(Configuration::class);

Expand Down
2 changes: 1 addition & 1 deletion tests/php/FacetedSearch/Filters/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ConverterTest extends MockeryTestCase
/** @var Block */
private $converter;

protected function setUp()
protected function setUp(): void
{
$mock = Mockery::mock(Configuration::class);

Expand Down
2 changes: 1 addition & 1 deletion tests/php/FacetedSearch/HookDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class HookDispatcherTest extends MockeryTestCase
private $module;
private $dispatcher;

protected function setUp()
protected function setUp(): void
{
$this->module = Mockery::mock(Ps_Facetedsearch::class);
$contextMock = Mockery::mock(Context::class);
Expand Down
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
2 changes: 1 addition & 1 deletion tests/php/FacetedSearch/URLSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class URLSerializerTest extends MockeryTestCase
{
private $serializer;

protected function setUp()
protected function setUp(): void
{
$this->serializer = new URLSerializer();
}
Expand Down

0 comments on commit 4cb8254

Please sign in to comment.