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

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

public testLinkContentTypeToGroup ( $contentTypeHref ) : string
Результат string the content type href
    public function testLinkContentTypeToGroup($contentTypeHref)
    {
        // @todo Spec example is invalid, missing parameter name
        $request = $this->createHttpRequest('POST', "{$contentTypeHref}/groups?group=/api/ezp/v2/content/typegroups/1");
        $response = $this->sendHttpRequest($request);
        self::assertHttpResponseCodeEquals($response, 200);
        return $contentTypeHref;
    }