eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTypeTest::testPublishContentTypeDraft PHP Метод

testPublishContentTypeDraft() публичный Метод

public testPublishContentTypeDraft ( $contentTypeHref )
    public function testPublishContentTypeDraft($contentTypeHref)
    {
        // we need to create a content type draft first since we deleted the previous one in testDeleteContentTypeDraft
        $contentTypeDraftHref = $this->testCreateContentTypeDraft($contentTypeHref);
        $response = $this->sendHttpRequest($this->createHttpRequest('PUBLISH', $contentTypeDraftHref));
        self::assertHttpResponseCodeEquals($response, 200);
    }