eZ\Bundle\EzPublishRestBundle\Tests\Functional\SectionTest::testUpdateSection PHP Method

testUpdateSection() public method

public testUpdateSection ( $sectionHref )
$sectionHref
    public function testUpdateSection($sectionHref)
    {
        $xml = <<<XML
<SectionInput>
  <identifier>testUpdateSection</identifier>
  <name>testUpdateSection</name>
</SectionInput>
XML;
        $request = $this->createHttpRequest('PATCH', $sectionHref, 'SectionInput+xml', 'Section+json');
        $request->setContent($xml);
        $response = $this->sendHttpRequest($request);
        self::assertHttpResponseCodeEquals($response, 200);
    }