eZ/Bundle/EzPublishRestBundle/Tests/Functional/TrashTest.php 1 location
|
@@ 137-143 (lines=7) @@
|
| 134 |
|
* |
| 135 |
|
* @return string the trashed item href |
| 136 |
|
*/ |
| 137 |
|
private function createTrashItem($id) |
| 138 |
|
{ |
| 139 |
|
$folder = $this->createFolder($id, '/api/ezp/v2/content/locations/1/2'); |
| 140 |
|
$folderLocations = $this->getContentLocations($folder['_href']); |
| 141 |
|
|
| 142 |
|
return $this->sendLocationToTrash($folderLocations['LocationList']['Location'][0]['_href']); |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
/** |
| 146 |
|
* @param $folderLocations |
eZ/Bundle/EzPublishRestBundle/Tests/Functional/UrlAliasTest.php 1 location
|
@@ 26-32 (lines=7) @@
|
| 23 |
|
* |
| 24 |
|
* @return string The folder's main location href |
| 25 |
|
*/ |
| 26 |
|
public function testCreateFolder() |
| 27 |
|
{ |
| 28 |
|
$folderArray = $this->createFolder(__FUNCTION__, '/api/ezp/v2/content/locations/1/2'); |
| 29 |
|
$folderLocations = $this->getContentLocations($folderArray['_href']); |
| 30 |
|
|
| 31 |
|
return $folderLocations['LocationList']['Location'][0]['_href']; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @covers GET /content/urlaliases |