public function testWsseAccess() { try { $this->client->soap("http://localhost/api/soap", array('location' => 'http://localhost/api/soap', 'soap_version' => SOAP_1_2)); } catch (\Exception $e) { $this->assertEquals('Forbidden', $e->getMessage()); } }
public function setUp() { $this->client = static::createClient(array(), ToolsAPI::generateWsseHeader()); $this->client->soap("http://localhost/api/soap", array('location' => 'http://localhost/api/soap', 'soap_version' => SOAP_1_2)); if (!self::$hasLoaded) { $this->client->appendFixtures(__DIR__ . DIRECTORY_SEPARATOR . 'DataFixtures'); } self::$hasLoaded = true; }
public function testInvalidUser() { $this->client = static::createClient(array(), ToolsAPI::generateWsseHeader(self::USER_NAME, ToolsAPI::USER_PASSWORD)); try { $this->client->soap("http://localhost/api/soap", array('location' => 'http://localhost/api/soap', 'soap_version' => SOAP_1_2)); } catch (\Exception $e) { $this->assertEquals('Unauthorized', $e->getMessage()); } }
public function setUp() { $this->client = static::createClient(array(), ToolsAPI::generateWsseHeader()); $this->client->soap("http://localhost/api/soap", array('location' => 'http://localhost/api/soap', 'soap_version' => SOAP_1_2)); }
public function setUp() { $this->markTestSkipped("API for new ACL isn't implemented"); $this->client = static::createClient(array(), ToolsAPI::generateWsseHeader()); $this->client->soap("http://localhost/api/soap", array('location' => 'http://localhost/api/soap', 'soap_version' => SOAP_1_2)); }