eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTypeTest::testCopyContentType PHP 메소드

testCopyContentType() 공개 메소드

public testCopyContentType ( $sourceContentTypeHref ) : string
리턴 string The copied content type href
    public function testCopyContentType($sourceContentTypeHref)
    {
        $response = $this->sendHttpRequest($this->createHttpRequest('COPY', $sourceContentTypeHref, '', 'ContentType+json'));
        self::assertHttpResponseCodeEquals($response, 201);
        self::assertHttpResponseHasHeader($response, 'Location');
        $href = $response->getHeader('Location');
        $this->addCreatedElement($href);
        return $href;
        // @todo test identifier (copy_of_<originalBaseIdentifier>_<newTypeId>)
    }