eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTest::testCreateDraftFromCurrentVersion PHP Method

testCreateDraftFromCurrentVersion() public method

public testCreateDraftFromCurrentVersion ( string $restContentHref ) : string
$restContentHref string /content/objects/
return string the ID of the created version (/content/objects//versions/
    public function testCreateDraftFromCurrentVersion($restContentHref)
    {
        $response = $this->sendHttpRequest($this->createHttpRequest('COPY', "{$restContentHref}/currentversion"));
        self::assertHttpResponseCodeEquals($response, 201);
        self::assertHttpResponseHasHeader($response, 'Location');
        return $response->getHeader('Location');
    }