public function testEnableCdnContainer() { $data = $this->rackspace->enableCdnContainer(TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME); $this->assertTrue($data !== false); $this->assertTrue(is_array($data)); $this->assertTrue(!empty($data['cdn_uri'])); $this->assertTrue(!empty($data['cdn_uri_ssl'])); }
/** * Enable the CDN for the container * * @param integer $ttl * @return boolean */ public function enableCdn($ttl = RackspaceFiles::CDN_TTL_MIN) { $result = $this->service->enableCdnContainer($this->getName(), $ttl); if ($result !== false) { $this->cdn = true; $this->ttl = $ttl; $this->logRetention = true; $this->cdnUri = $result['cdn_uri']; $this->cdnUriSsl = $result['cdn_uri_ssl']; return true; } return false; }