public function testRedirectContent($restContentHref) { $response = $this->sendHttpRequest($this->createHttpRequest('GET', '/api/ezp/v2/content/objects?remoteId=' . $this->addTestSuffix('testCreateContent'))); self::assertHttpResponseCodeEquals($response, 307); self::assertEquals($response->getHeader('Location'), $restContentHref); }