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
|
@@ 1065-1076 (lines=12) @@
|
| 1062 |
|
/** |
| 1063 |
|
* @return \eZ\Publish\Core\Repository\Helper\LimitationService|\PHPUnit_Framework_MockObject_MockObject |
| 1064 |
|
*/ |
| 1065 |
|
protected function getLimitationServiceMock($methods = []) |
| 1066 |
|
{ |
| 1067 |
|
if ($this->limitationServiceMock === null) { |
| 1068 |
|
$this->limitationServiceMock = $this |
| 1069 |
|
->getMockBuilder('eZ\\Publish\\Core\\Repository\\Helper\\LimitationService') |
| 1070 |
|
->setMethods($methods) |
| 1071 |
|
->disableOriginalConstructor() |
| 1072 |
|
->getMock(); |
| 1073 |
|
} |
| 1074 |
|
|
| 1075 |
|
return $this->limitationServiceMock; |
| 1076 |
|
} |
| 1077 |
|
} |
| 1078 |
|
|