| @@ 22-37 (lines=16) @@ | ||
| 19 | */ |
|
| 20 | class DoctrineDatabaseTest extends TestCase |
|
| 21 | { |
|
| 22 | protected function getLocationGateway() |
|
| 23 | { |
|
| 24 | $dbHandler = $this->getDatabaseHandler(); |
|
| 25 | ||
| 26 | return new DoctrineDatabase( |
|
| 27 | $dbHandler, |
|
| 28 | $this |
|
| 29 | ->getMockBuilder('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\CriteriaConverter') |
|
| 30 | ->disableOriginalConstructor() |
|
| 31 | ->getMock(), |
|
| 32 | $this |
|
| 33 | ->getMockBuilder('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\SortClauseConverter') |
|
| 34 | ->disableOriginalConstructor() |
|
| 35 | ->getMock() |
|
| 36 | ); |
|
| 37 | } |
|
| 38 | ||
| 39 | public static function getLoadLocationValues() |
|
| 40 | { |
|
| @@ 21-36 (lines=16) @@ | ||
| 18 | */ |
|
| 19 | class DoctrineDatabaseTrashTest extends TestCase |
|
| 20 | { |
|
| 21 | protected function getLocationGateway() |
|
| 22 | { |
|
| 23 | $dbHandler = $this->getDatabaseHandler(); |
|
| 24 | ||
| 25 | return new DoctrineDatabase( |
|
| 26 | $dbHandler, |
|
| 27 | $this |
|
| 28 | ->getMockBuilder('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\CriteriaConverter') |
|
| 29 | ->disableOriginalConstructor() |
|
| 30 | ->getMock(), |
|
| 31 | $this |
|
| 32 | ->getMockBuilder('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\SortClauseConverter') |
|
| 33 | ->disableOriginalConstructor() |
|
| 34 | ->getMock() |
|
| 35 | ); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::trashLocation |
|