Esempio n. 1
0
 public function testRetrieveDefaultParameters()
 {
     $acp = new AfsAcp('127.0.0.1', 666);
     $service = $acp->get_service();
     $this->assertEquals(666, $service->id);
     $this->assertEquals(AfsServiceStatus::STABLE, $service->status);
     $acp->execute();
     $url = $acp->get_generated_url();
     $this->assertTrue(strpos($url, '127.0.0.1') !== False, 'URL does not contain right host');
     $this->assertTrue(strpos($url, 'service=666') !== False, 'URL does not contain right sesrvice id');
     $this->assertTrue(strpos($url, 'status=stable') !== False, 'URL does not contain right sesrvice status');
     $config = $acp->get_helpers_configuration();
     $this->assertEquals(AfsHelperFormat::ARRAYS, $config->get_helper_format());
 }