File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Review/Test/Unit/Controller/Adminhtml/Product Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ protected function setUp(): void
74
74
75
75
public function testExecute (): void
76
76
{
77
- $ this ->requestMock ->expects ($ this -> atLeastOnce ())
77
+ $ this ->requestMock ->expects (self :: atLeastOnce ())
78
78
->method ('getParam ' )
79
79
->willReturnMap (
80
80
[
@@ -84,19 +84,19 @@ public function testExecute(): void
84
84
);
85
85
86
86
$ collectionMock = $ this ->createMock (ReviewCollection::class);
87
- $ this ->collectionFactoryMock ->expects ($ this -> once ())
87
+ $ this ->collectionFactoryMock ->expects (self :: once ())
88
88
->method ('create ' )
89
89
->willReturn ($ collectionMock );
90
90
$ resource = $ this ->createMock (ReviewResourceModel::class);
91
91
$ collectionMock ->method ('getResource ' )
92
92
->willReturn ($ resource );
93
93
$ resource ->method ('getIdFieldName ' )
94
94
->willReturn ('id ' );
95
- $ collectionMock ->expects ($ this -> once ())
95
+ $ collectionMock ->expects (self :: once ())
96
96
->method ('addFieldToFilter ' )
97
97
->with ('main_table.id ' , [10 , 20 ])
98
98
->willReturnSelf ();
99
- $ collectionMock ->expects ($ this -> once ())
99
+ $ collectionMock ->expects (self :: once ())
100
100
->method ('addStoreData ' )
101
101
->willReturnSelf ();
102
102
You can’t perform that action at this time.
0 commit comments