Skip to content

Commit 57389c2

Browse files
committed
Tweak for php 5.6 compatability in test
1 parent debd7bb commit 57389c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerStatusCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ protected function getIndexerMock(array $methods = [], array $data = [])
255255
->setMethods(array_merge($methods, ['getId', 'getTitle']))
256256
->getMockForAbstractClass();
257257
$indexer->method('getId')
258-
->willReturn($data['indexer_id'] ?? '');
258+
->willReturn(isset($data['indexer_id']) ? $data['indexer_id'] : '');
259259
$indexer->method('getTitle')
260-
->willReturn($data['title'] ?? '');
260+
->willReturn(isset($data['title']) ? $data['title'] : '');
261261
return $indexer;
262262
}
263263

0 commit comments

Comments
 (0)