Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 56b2388

Browse files
localheinzGianluca Arbezzano
authored andcommitted
Fix: Assert that isModule() is never called
1 parent 8e8375a commit 56b2388

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

module/ZfModule/test/ZfModuleTest/Integration/Controller/IndexControllerTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,8 @@ public function testIndexActionRendersValidModulesOnly()
120120
;
121121

122122
$moduleService
123-
->expects($this->any())
123+
->expects($this->never())
124124
->method('isModule')
125-
->willReturnCallback(function ($repository) use ($nonModule) {
126-
if ($repository !== $nonModule) {
127-
return true;
128-
}
129-
130-
return false;
131-
})
132125
;
133126

134127
$moduleMapper = $this->getMockBuilder(Mapper\Module::class)

0 commit comments

Comments
 (0)