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