comparison core/tests/Drupal/Tests/WebAssert.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 7a779792577d
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
200 * Thrown when element doesn't exist, or the title is a different one. 200 * Thrown when element doesn't exist, or the title is a different one.
201 */ 201 */
202 public function titleEquals($expected_title) { 202 public function titleEquals($expected_title) {
203 $title_element = $this->session->getPage()->find('css', 'title'); 203 $title_element = $this->session->getPage()->find('css', 'title');
204 if (!$title_element) { 204 if (!$title_element) {
205 throw new ExpectationException('No title element found on the page', $this->session); 205 throw new ExpectationException('No title element found on the page', $this->session->getDriver());
206 } 206 }
207 $actual_title = $title_element->getText(); 207 $actual_title = $title_element->getText();
208 $this->assert($expected_title === $actual_title, 'Title found'); 208 $this->assert($expected_title === $actual_title, 'Title found');
209 } 209 }
210 210