コード例 #1
0
 public function testSimpleAuthenticationUrl()
 {
     $this->configuration->makeSimpleAuthenticationType();
     $expectedAction = 'Test.ff';
     $this->parameters['format'] = 'json';
     $expectedPath = '/' . $this->configuration->getContext() . '/' . $expectedAction;
     $expectedParameters = array('channel' => 'de', 'format' => 'json', 'timestamp' => '%d', 'username' => $this->configuration->getUserName(), 'password' => md5($this->configuration->getPassword()));
     $this->assertUrlEquals($expectedPath, $expectedParameters, $this->urlBuilder->getAuthenticationUrl($expectedAction, $this->parameters));
 }