eZ/Publish/Core/Persistence/Legacy/Tests/TransactionHandlerTest.php 1 location
|
@@ 210-223 (lines=14) @@
|
| 207 |
|
* |
| 208 |
|
* @return \eZ\Publish\Core\Persistence\Legacy\Content\Type\MemoryCachingHandler|\PHPUnit_Framework_MockObject_MockObject |
| 209 |
|
*/ |
| 210 |
|
protected function getContentTypeHandlerMock() |
| 211 |
|
{ |
| 212 |
|
if (!isset($this->contentTypeHandlerMock)) { |
| 213 |
|
$this->contentTypeHandlerMock = $this->getMock( |
| 214 |
|
'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\MemoryCachingHandler', |
| 215 |
|
array(), |
| 216 |
|
array(), |
| 217 |
|
'', |
| 218 |
|
false |
| 219 |
|
); |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
return $this->contentTypeHandlerMock; |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
/** |
| 226 |
|
* Returns a mock object for the Content Language Gateway. |
eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php 1 location
|
@@ 1480-1493 (lines=14) @@
|
| 1477 |
|
* |
| 1478 |
|
* @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler |
| 1479 |
|
*/ |
| 1480 |
|
protected function getContentTypeHandlerMock() |
| 1481 |
|
{ |
| 1482 |
|
if (!isset($this->contentTypeHandlerMock)) { |
| 1483 |
|
$this->contentTypeHandlerMock = $this->getMock( |
| 1484 |
|
'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Handler', |
| 1485 |
|
array(), |
| 1486 |
|
array(), |
| 1487 |
|
'', |
| 1488 |
|
false |
| 1489 |
|
); |
| 1490 |
|
} |
| 1491 |
|
|
| 1492 |
|
return $this->contentTypeHandlerMock; |
| 1493 |
|
} |
| 1494 |
|
|
| 1495 |
|
/** |
| 1496 |
|
* Returns a FieldHandler mock. |