eZ/Publish/Core/Persistence/Legacy/Tests/Content/FieldHandlerTest.php 1 location
|
@@ 1016-1029 (lines=14) @@
|
| 1013 |
|
* |
| 1014 |
|
* @return \eZ\Publish\Core\Persistence\Legacy\Content\Mapper|\PHPUnit_Framework_MockObject_MockObject |
| 1015 |
|
*/ |
| 1016 |
|
protected function getMapperMock() |
| 1017 |
|
{ |
| 1018 |
|
if (!isset($this->mapperMock)) { |
| 1019 |
|
$this->mapperMock = $this->getMock( |
| 1020 |
|
'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Mapper', |
| 1021 |
|
array(), |
| 1022 |
|
array(), |
| 1023 |
|
'', |
| 1024 |
|
false |
| 1025 |
|
); |
| 1026 |
|
} |
| 1027 |
|
|
| 1028 |
|
return $this->mapperMock; |
| 1029 |
|
} |
| 1030 |
|
|
| 1031 |
|
/** |
| 1032 |
|
* Returns a mock object for the Content Gateway. |
eZ/Publish/Core/Persistence/Legacy/Tests/Content/ObjectState/ObjectStateHandlerTest.php 1 location
|
@@ 691-702 (lines=12) @@
|
| 688 |
|
* |
| 689 |
|
* @return \eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Mapper |
| 690 |
|
*/ |
| 691 |
|
protected function getMapperMock() |
| 692 |
|
{ |
| 693 |
|
if (!isset($this->mapperMock)) { |
| 694 |
|
$this->mapperMock = $this->getMock( |
| 695 |
|
'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\ObjectState\\Mapper', |
| 696 |
|
array(), |
| 697 |
|
array($this->getLanguageHandler()) |
| 698 |
|
); |
| 699 |
|
} |
| 700 |
|
|
| 701 |
|
return $this->mapperMock; |
| 702 |
|
} |
| 703 |
|
|
| 704 |
|
/** |
| 705 |
|
* Returns a mock for the object state gateway. |
eZ/Publish/Core/Persistence/Legacy/Tests/Content/Type/ContentTypeHandlerTest.php 1 location
|
@@ 1184-1197 (lines=14) @@
|
| 1181 |
|
* |
| 1182 |
|
* @return \eZ\Publish\Core\Persistence\Legacy\Content\Type\Mapper |
| 1183 |
|
*/ |
| 1184 |
|
protected function getMapperMock($methods = array()) |
| 1185 |
|
{ |
| 1186 |
|
if (!isset($this->mapperMock)) { |
| 1187 |
|
$this->mapperMock = $this->getMock( |
| 1188 |
|
'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Mapper', |
| 1189 |
|
$methods, |
| 1190 |
|
array(), |
| 1191 |
|
'', |
| 1192 |
|
false |
| 1193 |
|
); |
| 1194 |
|
} |
| 1195 |
|
|
| 1196 |
|
return $this->mapperMock; |
| 1197 |
|
} |
| 1198 |
|
|
| 1199 |
|
/** |
| 1200 |
|
* Returns a Update\Handler mock. |
eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php 1 location
|
@@ 1520-1533 (lines=14) @@
|
| 1517 |
|
* |
| 1518 |
|
* @return \eZ\Publish\Core\Persistence\Legacy\Content\Mapper |
| 1519 |
|
*/ |
| 1520 |
|
protected function getMapperMock() |
| 1521 |
|
{ |
| 1522 |
|
if (!isset($this->mapperMock)) { |
| 1523 |
|
$this->mapperMock = $this->getMock( |
| 1524 |
|
'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Mapper', |
| 1525 |
|
array(), |
| 1526 |
|
array(), |
| 1527 |
|
'', |
| 1528 |
|
false |
| 1529 |
|
); |
| 1530 |
|
} |
| 1531 |
|
|
| 1532 |
|
return $this->mapperMock; |
| 1533 |
|
} |
| 1534 |
|
|
| 1535 |
|
/** |
| 1536 |
|
* Returns a Location Gateway mock. |