File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/internal/Magento/Framework/Module/Test/Unit Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public function testIsModuleInfoAvailableNoConfig(): void
129
129
{
130
130
$ this ->config
131
131
->method ('get ' )
132
- ->willReturnOnConsecutiveCalls ([ ' modules ' => ' testModule ' ], null );
132
+ ->willReturnOnConsecutiveCalls (null );
133
133
$ this ->assertFalse ($ this ->model ->isModuleInfoAvailable ());
134
134
}
135
135
@@ -144,7 +144,7 @@ public function testIsModuleInfoAvailableNoConfig(): void
144
144
private function setLoadConfigExpectation ($ isExpected = true ): void
145
145
{
146
146
if ($ isExpected ) {
147
- $ this ->config ->expects ($ this ->exactly ( 2 ))->method ('get ' )->willReturn (self ::$ enabledFixture );
147
+ $ this ->config ->expects ($ this ->once ( ))->method ('get ' )->willReturn (self ::$ enabledFixture );
148
148
} else {
149
149
$ this ->config ->expects ($ this ->never ())->method ('get ' );
150
150
}
You can’t perform that action at this time.
0 commit comments