| @@ 109-125 (lines=17) @@ | ||
| 106 | /** |
|
| 107 | * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::loadSectionData |
|
| 108 | */ |
|
| 109 | public function testLoadSectionData() |
|
| 110 | { |
|
| 111 | $gateway = $this->getDatabaseGateway(); |
|
| 112 | ||
| 113 | $result = $gateway->loadSectionData(2); |
|
| 114 | ||
| 115 | $this->assertEquals( |
|
| 116 | array( |
|
| 117 | array( |
|
| 118 | 'id' => '2', |
|
| 119 | 'identifier' => 'users', |
|
| 120 | 'name' => 'Users', |
|
| 121 | ), |
|
| 122 | ), |
|
| 123 | $result |
|
| 124 | ); |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::loadAllSectionData |
|
| @@ 182-198 (lines=17) @@ | ||
| 179 | /** |
|
| 180 | * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::loadSectionDataByIdentifier |
|
| 181 | */ |
|
| 182 | public function testLoadSectionDataByIdentifier() |
|
| 183 | { |
|
| 184 | $gateway = $this->getDatabaseGateway(); |
|
| 185 | ||
| 186 | $result = $gateway->loadSectionDataByIdentifier('users'); |
|
| 187 | ||
| 188 | $this->assertEquals( |
|
| 189 | array( |
|
| 190 | array( |
|
| 191 | 'id' => '2', |
|
| 192 | 'identifier' => 'users', |
|
| 193 | 'name' => 'Users', |
|
| 194 | ), |
|
| 195 | ), |
|
| 196 | $result |
|
| 197 | ); |
|
| 198 | } |
|
| 199 | ||
| 200 | /** |
|
| 201 | * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::countContentObjectsInSection |
|