File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments