Commit b9a47173 authored by alexpott's avatar alexpott

Issue #3005352 by hchonov, oknate: Passing a Session object to the...

Issue #3005352 by hchonov, oknate: Passing a Session object to the ExpectationException constructor is deprecated as of Mink 1.7. Pass the driver instead

(cherry picked from commit e15bbff7)
parent b0592538
...@@ -74,7 +74,7 @@ public function buttonExists($button, TraversableElement $container = NULL) { ...@@ -74,7 +74,7 @@ public function buttonExists($button, TraversableElement $container = NULL) {
$node = $container->findButton($button); $node = $container->findButton($button);
if ($node === NULL) { if ($node === NULL) {
throw new ElementNotFoundException($this->session, 'button', 'id|name|label|value', $button); throw new ElementNotFoundException($this->session->getDriver(), 'button', 'id|name|label|value', $button);
} }
return $node; return $node;
...@@ -120,7 +120,7 @@ public function selectExists($select, TraversableElement $container = NULL) { ...@@ -120,7 +120,7 @@ public function selectExists($select, TraversableElement $container = NULL) {
]); ]);
if ($node === NULL) { if ($node === NULL) {
throw new ElementNotFoundException($this->session, 'select', 'id|name|label|value', $select); throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select);
} }
return $node; return $node;
...@@ -150,7 +150,7 @@ public function optionExists($select, $option, TraversableElement $container = N ...@@ -150,7 +150,7 @@ public function optionExists($select, $option, TraversableElement $container = N
]); ]);
if ($select_field === NULL) { if ($select_field === NULL) {
throw new ElementNotFoundException($this->session, 'select', 'id|name|label|value', $select); throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select);
} }
$option_field = $select_field->find('named', ['option', $option]); $option_field = $select_field->find('named', ['option', $option]);
...@@ -183,7 +183,7 @@ public function optionNotExists($select, $option, TraversableElement $container ...@@ -183,7 +183,7 @@ public function optionNotExists($select, $option, TraversableElement $container
]); ]);
if ($select_field === NULL) { if ($select_field === NULL) {
throw new ElementNotFoundException($this->session, 'select', 'id|name|label|value', $select); throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select);
} }
$option_field = $select_field->find('named', ['option', $option]); $option_field = $select_field->find('named', ['option', $option]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment