/** * Test getForceSSL(). */ public function testGetForceSSL() { $domain = new Domain(); $vhost = new Vhost(); $certificate = new Certificate(); $subdomain = new Subdomain($domain); $ip = new IpAddress(); $certificate->setName('test')->setCertificateFile('asdasdasdds'); $domain->setCertificate($certificate)->setForceSsl(true); $subdomain->setCertificate($certificate)->setForceSsl(true); $vhost->setDomain($domain); $this->assertTrue($vhost->getForceSSL()); $vhost->setSubdomain($subdomain); $this->assertTrue($vhost->getForceSSL()); $ip->setHasSsl(true); $vhost->setIpaddress($ip); $this->assertFalse($vhost->getForceSSL()); }