Skip to content

Commit 94a1c27

Browse files
committed
PB-494: Update code to be compatible with PHP 7.4
- use getMockForAbstractClass
1 parent 54d9307 commit 94a1c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/Test/Unit/Model/Catalog/SortingTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private function createOptionMocks(array $optionMocksConfiguration): array
163163
*/
164164
private function createOptionMock(string $label): MockObject
165165
{
166-
$mock = $this->createMock(OptionInterface::class);
166+
$mock = $this->getMockForAbstractClass(OptionInterface::class);
167167
$mock->method('getLabel')
168168
->willReturn(__($label));
169169

0 commit comments

Comments
 (0)