Skip to content

Commit 3501b35

Browse files
committed
Corrected minor Failures
1 parent 7a542dd commit 3501b35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/Indexer/Test/Unit/Model/IndexerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -247,7 +247,7 @@ public function testReindexAll()
247247
$stateMock->expects($this->once())->method('getId')->willReturn(1);
248248
$stateMock->expects($this->exactly(3))->method('setStatus')->willReturnSelf();
249249
$stateMock->expects($this->any())->method('getStatus')->willReturn('idle');
250-
$stateMock->expects($this->exactly(2))->method('save')->willReturnSelf();
250+
$stateMock->expects($this->exactly(3))->method('save')->willReturnSelf();
251251
$this->stateFactoryMock->expects($this->once())->method('create')->willReturn($stateMock);
252252

253253
$this->viewMock->expects($this->once())->method('isEnabled')->willReturn(true);
@@ -286,7 +286,7 @@ public function testReindexAllWithException()
286286
->method('load')->with($indexId, 'indexer_id')->willReturnSelf();
287287
$stateMock->expects($this->never())->method('setIndexerId');
288288
$stateMock->expects($this->once())->method('getId')->willReturn(1);
289-
$stateMock->expects($this->exactly(3))->method('setStatus')->willReturnSelf();
289+
$stateMock->expects($this->exactly(2))->method('setStatus')->willReturnSelf();
290290
$stateMock->expects($this->any())->method('getStatus')->willReturn('idle');
291291
$stateMock->expects($this->exactly(2))->method('save')->willReturnSelf();
292292
$this->stateFactoryMock->expects($this->once())->method('create')->willReturn($stateMock);
@@ -332,7 +332,7 @@ public function testReindexAllWithError()
332332
->method('load')->with($indexId, 'indexer_id')->willReturnSelf();
333333
$stateMock->expects($this->never())->method('setIndexerId');
334334
$stateMock->expects($this->once())->method('getId')->willReturn(1);
335-
$stateMock->expects($this->exactly(3))->method('setStatus')->willReturnSelf();
335+
$stateMock->expects($this->exactly(2))->method('setStatus')->willReturnSelf();
336336
$stateMock->expects($this->any())->method('getStatus')->willReturn('idle');
337337
$stateMock->expects($this->exactly(2))->method('save')->willReturnSelf();
338338
$this->stateFactoryMock->expects($this->once())->method('create')->willReturn($stateMock);
@@ -420,7 +420,7 @@ function () use (&$indexers) {
420420
$stateMock->expects($this->once())->method('getId')->willReturn(1);
421421
$stateMock->expects($this->exactly(3))->method('setStatus')->willReturnSelf();
422422
$stateMock->expects($this->any())->method('getStatus')->willReturn('idle');
423-
$stateMock->expects($this->exactly(2))->method('save')->willReturnSelf();
423+
$stateMock->expects($this->exactly(3))->method('save')->willReturnSelf();
424424
$this->stateFactoryMock->expects($this->once())->method('create')->willReturn($stateMock);
425425

426426
$stateMock = $this->createMock(\Magento\Framework\Mview\View\StateInterface::class);

0 commit comments

Comments
 (0)