Skip to content

Commit 045b129

Browse files
author
Cristian Hampus
committed
Use getInternalResponse instead of getResponse.
1 parent 65dae28 commit 045b129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/SOAP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public function dontSeeSoapResponseContainsXPath($xpath)
336336
* @param $code
337337
*/
338338
public function seeResponseCodeIs($code) {
339-
\PHPUnit_Framework_Assert::assertEquals($code, $this->client->getResponse()->getStatus(), "soap response code matches expected");
339+
\PHPUnit_Framework_Assert::assertEquals($code, $this->client->getInternalResponse()->getStatus(), "soap response code matches expected");
340340
}
341341

342342
/**
@@ -466,7 +466,7 @@ protected function processInternalRequest($action, $body)
466466
protected function processExternalRequest($action, $body)
467467
{
468468
$this->processRequest($action, $body);
469-
return $this->client->getResponse()->getContent();
469+
return $this->client->getInternalResponse()->getContent();
470470
}
471471

472472
}

0 commit comments

Comments
 (0)