Skip to content

Commit f79c374

Browse files
committed
build script updated
1 parent a11a326 commit f79c374

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Codeception/Module/SOAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function seeResponseCodeIs($code) {
296296
* @param $cssOrXPath
297297
* @return string
298298
*/
299-
public function grabTextFrom($cssOrXPath) {
299+
public function grabTextContentFrom($cssOrXPath) {
300300
$el = $this->matchElement($cssOrXPath);
301301
return $el->textContent;
302302
}

tests/unit/Codeception/Module/SoapTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ public function testGrabTextFrom() {
102102
$dom = new DOMDocument();
103103
$this->module->xmlResponse = $dom;
104104
$dom->loadXML('<?xml version="1.0" encoding="UTF-8"?><doc><node>123</node></doc>');
105-
$res = $this->module->grabTextFrom('doc node');
105+
$res = $this->module->grabTextContentFrom('doc node');
106106
$this->assertEquals('123', $res);
107-
$res = $this->module->grabTextFrom('descendant-or-self::doc/descendant::node');
107+
$res = $this->module->grabTextContentFrom('descendant-or-self::doc/descendant::node');
108108
$this->assertEquals('123', $res);
109109

110110

0 commit comments

Comments
 (0)