summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap/ContactsMenuContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acceptance/features/bootstrap/ContactsMenuContext.php')
-rw-r--r--tests/acceptance/features/bootstrap/ContactsMenuContext.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
index 860e84fa950..35786062150 100644
--- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php
+++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
@@ -22,6 +22,7 @@
*/
use Behat\Behat\Context\Context;
+use PHPUnit\Framework\Assert;
class ContactsMenuContext implements Context, ActorAwareInterface {
use ActorAware;
@@ -88,7 +89,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
* @Then I see that the Contacts menu is shown
*/
public function iSeeThatTheContactsMenuIsShown() {
- PHPUnit_Framework_Assert::assertTrue(
+ Assert::assertTrue(
$this->actor->find(self::contactsMenu(), 10)->isVisible());
}
@@ -96,7 +97,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
* @Then I see that the Contacts menu search input is shown
*/
public function iSeeThatTheContactsMenuSearchInputIsShown() {
- PHPUnit_Framework_Assert::assertTrue(
+ Assert::assertTrue(
$this->actor->find(self::contactsMenuSearchInput(), 10)->isVisible());
}
@@ -104,7 +105,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
* @Then I see that the no results message in the Contacts menu is shown
*/
public function iSeeThatTheNoResultsMessageInTheContactsMenuIsShown() {
- PHPUnit_Framework_Assert::assertTrue(
+ Assert::assertTrue(
$this->actor->find(self::noResultsMessage(), 10)->isVisible());
}
@@ -112,7 +113,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
* @Then I see that the contact :contactName in the Contacts menu is shown
*/
public function iSeeThatTheContactInTheContactsMenuIsShown($contactName) {
- PHPUnit_Framework_Assert::assertTrue(
+ Assert::assertTrue(
$this->actor->find(self::menuItemFor($contactName), 10)->isVisible());
}
@@ -123,7 +124,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
$this->iSeeThatThecontactsMenuIsShown();
try {
- PHPUnit_Framework_Assert::assertFalse(
+ Assert::assertFalse(
$this->actor->find(self::menuItemFor($contactName))->isVisible());
} catch (NoSuchElementException $exception) {
}
@@ -139,7 +140,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
$this->actor,
self::menuItemFor($contactName),
$timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
- PHPUnit_Framework_Assert::fail("The $contactName contact in Contacts menu is still shown after $timeout seconds");
+ Assert::fail("The $contactName contact in Contacts menu is still shown after $timeout seconds");
}
}
}