@@ -99,7 +99,7 @@ |
||
99 | 99 | /** |
100 | 100 | * @param string $text |
101 | 101 | * |
102 | - * @return NodeElement|null |
|
102 | + * @return NodeElement |
|
103 | 103 | */ |
104 | 104 | public function findByText($text) |
105 | 105 | { |
@@ -92,6 +92,9 @@ |
||
92 | 92 | return sprintf("$this->query[%s$this->text]", empty($this->attribute) ? 'text()' : "@$this->attribute"); |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $text |
|
97 | + */ |
|
95 | 98 | public function text($text) |
96 | 99 | { |
97 | 100 | $this->text = $text; |
@@ -5,8 +5,8 @@ |
||
5 | 5 | namespace Drupal\TqExtension\Utils\XPath; |
6 | 6 | |
7 | 7 | // Helpers. |
8 | -use Behat\Mink\Element\NodeElement; |
|
9 | 8 | use Behat\DebugExtension\Debugger; |
9 | +use Behat\Mink\Element\NodeElement; |
|
10 | 10 | |
11 | 11 | class InaccurateText |
12 | 12 | { |