eZ/Publish/Core/Repository/Tests/Service/Mock/PermissionsCriterionHandlerTest.php 1 location
|
@@ 437-448 (lines=12) @@
|
| 434 |
|
|
| 435 |
|
protected $limitationServiceMock; |
| 436 |
|
|
| 437 |
|
protected function getLimitationServiceMock($methods = []) |
| 438 |
|
{ |
| 439 |
|
if ($this->limitationServiceMock === null) { |
| 440 |
|
$this->limitationServiceMock = $this |
| 441 |
|
->getMockBuilder('eZ\Publish\Core\Repository\Helper\LimitationService') |
| 442 |
|
->setMethods($methods) |
| 443 |
|
->disableOriginalConstructor() |
| 444 |
|
->getMock(); |
| 445 |
|
} |
| 446 |
|
|
| 447 |
|
return $this->limitationServiceMock; |
| 448 |
|
} |
| 449 |
|
} |
| 450 |
|
|
eZ/Publish/Core/Repository/Tests/Service/Mock/PermissionTest.php 1 location
|
@@ 1780-1791 (lines=12) @@
|
| 1777 |
|
/** |
| 1778 |
|
* @return \eZ\Publish\Core\Repository\Helper\LimitationService|\PHPUnit_Framework_MockObject_MockObject |
| 1779 |
|
*/ |
| 1780 |
|
protected function getLimitationServiceMock($methods = []) |
| 1781 |
|
{ |
| 1782 |
|
if ($this->limitationServiceMock === null) { |
| 1783 |
|
$this->limitationServiceMock = $this |
| 1784 |
|
->getMockBuilder('eZ\\Publish\\Core\\Repository\\Helper\\LimitationService') |
| 1785 |
|
->setMethods($methods) |
| 1786 |
|
->disableOriginalConstructor() |
| 1787 |
|
->getMock(); |
| 1788 |
|
} |
| 1789 |
|
|
| 1790 |
|
return $this->limitationServiceMock; |
| 1791 |
|
} |
| 1792 |
|
} |
| 1793 |
|
|