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

merge-requests/2419/head
Alex Pott 2019-10-31 18:20:44 +01:00
parent 0a69c9c580
commit e15bbff78a
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ class WebAssert extends MinkWebAssert {
$node = $container->findButton($button);
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;
@ -120,7 +120,7 @@ class WebAssert extends MinkWebAssert {
]);
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;
@ -150,7 +150,7 @@ class WebAssert extends MinkWebAssert {
]);
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]);
@ -183,7 +183,7 @@ class WebAssert extends MinkWebAssert {
]);
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]);