eZ\Bundle\EzPublishRestBundle\Tests\Functional\TrashTest::createTrashItem PHP Method

createTrashItem() private method

Creates a folder, and sends it to trash.
private createTrashItem ( $id ) : string
return string the trashed item href
    private function createTrashItem($id)
    {
        $folder = $this->createFolder($id, '/api/ezp/v2/content/locations/1/2');
        $folderLocations = $this->getContentLocations($folder['_href']);
        return $this->sendLocationToTrash($folderLocations['LocationList']['Location'][0]['_href']);
    }