Skip to content

Commit 8e93b14

Browse files
committed
Add page type assertion to unit tests
1 parent 89abdaf commit 8e93b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Search/Test/Unit/Controller/Term/PopularTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testResult()
7979
->method('create')
8080
->willReturn($resultPageMock);
8181

82-
$this->action->execute();
82+
$this->assertEquals($resultPageMock, $this->action->execute());
8383
}
8484

8585
public function testResultWithDisabledPage()
@@ -98,6 +98,6 @@ public function testResultWithDisabledPage()
9898
->method('forward')
9999
->with('noroute');
100100

101-
$this->action->execute();
101+
$this->assertEquals($resultForwardMock, $this->action->execute());
102102
}
103103
}

0 commit comments

Comments
 (0)