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
|
@@ 1040-1051 (lines=12) @@
|
| 1037 |
|
/** |
| 1038 |
|
* @return \eZ\Publish\Core\Repository\Helper\LimitationService|\PHPUnit_Framework_MockObject_MockObject |
| 1039 |
|
*/ |
| 1040 |
|
protected function getLimitationServiceMock($methods = []) |
| 1041 |
|
{ |
| 1042 |
|
if ($this->limitationServiceMock === null) { |
| 1043 |
|
$this->limitationServiceMock = $this |
| 1044 |
|
->getMockBuilder('eZ\\Publish\\Core\\Repository\\Helper\\LimitationService') |
| 1045 |
|
->setMethods($methods) |
| 1046 |
|
->disableOriginalConstructor() |
| 1047 |
|
->getMock(); |
| 1048 |
|
} |
| 1049 |
|
|
| 1050 |
|
return $this->limitationServiceMock; |
| 1051 |
|
} |
| 1052 |
|
} |
| 1053 |
|
|