eZ/Publish/Core/Repository/Tests/Service/Mock/PermissionsCriterionHandlerTest.php 1 location
|
@@ 439-450 (lines=12) @@
|
| 436 |
|
|
| 437 |
|
protected $limitationServiceMock; |
| 438 |
|
|
| 439 |
|
protected function getLimitationServiceMock($methods = []) |
| 440 |
|
{ |
| 441 |
|
if ($this->limitationServiceMock === null) { |
| 442 |
|
$this->limitationServiceMock = $this |
| 443 |
|
->getMockBuilder('eZ\Publish\Core\Repository\Helper\LimitationService') |
| 444 |
|
->setMethods($methods) |
| 445 |
|
->disableOriginalConstructor() |
| 446 |
|
->getMock(); |
| 447 |
|
} |
| 448 |
|
|
| 449 |
|
return $this->limitationServiceMock; |
| 450 |
|
} |
| 451 |
|
} |
| 452 |
|
|
eZ/Publish/Core/Repository/Tests/Service/Mock/PermissionTest.php 1 location
|
@@ 1015-1026 (lines=12) @@
|
| 1012 |
|
/** |
| 1013 |
|
* @return \eZ\Publish\Core\Repository\Helper\LimitationService|\PHPUnit_Framework_MockObject_MockObject |
| 1014 |
|
*/ |
| 1015 |
|
protected function getLimitationServiceMock($methods = []) |
| 1016 |
|
{ |
| 1017 |
|
if ($this->limitationServiceMock === null) { |
| 1018 |
|
$this->limitationServiceMock = $this |
| 1019 |
|
->getMockBuilder('eZ\\Publish\\Core\\Repository\\Helper\\LimitationService') |
| 1020 |
|
->setMethods($methods) |
| 1021 |
|
->disableOriginalConstructor() |
| 1022 |
|
->getMock(); |
| 1023 |
|
} |
| 1024 |
|
|
| 1025 |
|
return $this->limitationServiceMock; |
| 1026 |
|
} |
| 1027 |
|
} |
| 1028 |
|
|