private function loadContent($restContentHref) { $response = $this->sendHttpRequest($this->createHttpRequest('GET', $restContentHref, '', 'ContentInfo+json')); if ($response->getStatusCode() != 200) { throw new \InvalidArgumentException("Content with ID {$restContentHref} could not be loaded"); } $array = json_decode($response->getContent(), true); if ($array === null) { self::fail('Error loading content. Response: ' . $response->getContent()); } return $array['Content']; }