Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 1a30f06

Browse files
committed
Adjusted unit tests
1 parent d9a86ad commit 1a30f06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ZfcRbacTest/Service/AuthorizationServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function testAssertionMapWithSingleAssertions()
238238
$roleService = $this->getMock('ZfcRbac\Service\RoleService', [], [], '', false);
239239
$assertionPluginManager = $this->getMock('ZfcRbac\Assertion\AssertionPluginManager', [], [], '', false);
240240
$assertion = new SimpleAssertion();
241-
$assertionPluginManager->method('get')->will($this->returnValueMap([
241+
$assertionPluginManager->expects($this->any())->method('get')->will($this->returnValueMap([
242242
['bar', null, $assertion],
243243
['foo', null, $assertion]
244244
]));
@@ -260,7 +260,7 @@ public function testAssertionMapWithMultipleSimpleAssertions()
260260
$roleService = $this->getMock('ZfcRbac\Service\RoleService', [], [], '', false);
261261
$assertionPluginManager = $this->getMock('ZfcRbac\Assertion\AssertionPluginManager', [], [], '', false);
262262
$assertion = new SimpleAssertion();
263-
$assertionPluginManager->method('get')->will($this->returnValueMap([
263+
$assertionPluginManager->expects($this->any())->method('get')->will($this->returnValueMap([
264264
['assertion1', null, $assertion],
265265
['assertion2', null, $assertion]
266266
]));
@@ -281,7 +281,7 @@ public function testAssertionMapWithMultipleAssertions()
281281
$roleService = $this->getMock('ZfcRbac\Service\RoleService', [], [], '', false);
282282
$assertionPluginManager = $this->getMock('ZfcRbac\Assertion\AssertionPluginManager', [], [], '', false);
283283
$assertion = new SimpleAssertion();
284-
$assertionPluginManager->method('get')->will($this->returnValueMap([
284+
$assertionPluginManager->expects($this->any())->method('get')->will($this->returnValueMap([
285285
['assertion1', null, $assertion],
286286
['assertion2', null, $assertion]
287287
]));
@@ -303,7 +303,7 @@ public function testAssertionMapWithMultipleAssertionsWithCondition()
303303
$roleService = $this->getMock('ZfcRbac\Service\RoleService', [], [], '', false);
304304
$assertionPluginManager = $this->getMock('ZfcRbac\Assertion\AssertionPluginManager', [], [], '', false);
305305
$assertion = new SimpleAssertion();
306-
$assertionPluginManager->method('get')->will($this->returnValueMap([
306+
$assertionPluginManager->expects($this->any())->method('get')->will($this->returnValueMap([
307307
['assertion1', null, $assertion],
308308
['assertion2', null, $assertion]
309309
]));

0 commit comments

Comments
 (0)