From 5eb30965ef21f4ae8fb6f1798012ecbd319de347 Mon Sep 17 00:00:00 2001 From: leemyong pakvn <3759923+leemyongpakvn@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:19:43 +0700 Subject: [PATCH] phpunit MockeryTestCase extended classes setUp return fix --- tests/php/FacetedSearch/Product/SearchProviderTest.php | 2 +- tests/php/FacetedSearch/Product/SearchTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php/FacetedSearch/Product/SearchProviderTest.php b/tests/php/FacetedSearch/Product/SearchProviderTest.php index 9f73b5817..e763cbce1 100644 --- a/tests/php/FacetedSearch/Product/SearchProviderTest.php +++ b/tests/php/FacetedSearch/Product/SearchProviderTest.php @@ -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); diff --git a/tests/php/FacetedSearch/Product/SearchTest.php b/tests/php/FacetedSearch/Product/SearchTest.php index ac6ad153a..cdc71fc7e 100644 --- a/tests/php/FacetedSearch/Product/SearchTest.php +++ b/tests/php/FacetedSearch/Product/SearchTest.php @@ -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')