19
19
use PHPUnit \Framework \MockObject \MockObject ;
20
20
use Psr \Log \LoggerInterface ;
21
21
22
-
23
22
/**
24
23
* Tests some functionality of the Review Summary collection
25
24
*/
@@ -31,34 +30,34 @@ class CollectionTest extends \PHPUnit\Framework\TestCase
31
30
protected Collection $ collection ;
32
31
33
32
/**
34
- * @var Query|MockObject
33
+ * @var Query
35
34
*/
36
- protected Query | MockObject $ fetchStrategyMock ;
35
+ protected Query $ fetchStrategyMock ;
37
36
38
37
/**
39
- * @var EntityFactory|MockObject
38
+ * @var EntityFactory
40
39
*/
41
- protected EntityFactory | MockObject $ entityFactoryMock ;
40
+ protected EntityFactory $ entityFactoryMock ;
42
41
43
42
/**
44
- * @var LoggerInterface|MockObject
43
+ * @var LoggerInterface
45
44
*/
46
- protected LoggerInterface | MockObject $ loggerMock ;
45
+ protected LoggerInterface $ loggerMock ;
47
46
48
47
/**
49
- * @var AbstractDb|MockObject
48
+ * @var AbstractDb
50
49
*/
51
- protected MockObject | AbstractDb $ resourceMock ;
50
+ protected AbstractDb $ resourceMock ;
52
51
53
52
/**
54
- * @var AdapterInterface|MockObject
53
+ * @var AdapterInterface
55
54
*/
56
- protected MockObject | Mysql | AdapterInterface $ connectionMock ;
55
+ protected AdapterInterface $ connectionMock ;
57
56
58
57
/**
59
- * @var Select|MockObject
58
+ * @var Select
60
59
*/
61
- protected Select | MockObject $ selectMock ;
60
+ protected Select $ selectMock ;
62
61
63
62
protected function setUp (): void
64
63
{
@@ -120,7 +119,6 @@ public function testAddStoreFilter(array|int $storeId, string $expectedQuery)
120
119
{
121
120
$ this ->selectMock ->expects ($ this ->once ())->method ('where ' )->with ($ expectedQuery , $ storeId );
122
121
$ this ->collection ->addStoreFilter ($ storeId );
123
-
124
122
}
125
123
126
124
/**
0 commit comments