summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap/CommentsAppContext.php
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-01-17 18:20:52 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-30 08:35:15 +0200
commitb53f49b94062bbbf8de8a10c74af4ed8521919cd (patch)
treef08183d525657a4e53ea1abdf96bf06d647896d7 /tests/acceptance/features/bootstrap/CommentsAppContext.php
parent59d567e8643c9c3a1e8422b7fd203253565df239 (diff)
downloadnextcloud-server-b53f49b94062bbbf8de8a10c74af4ed8521919cd.tar.gz
nextcloud-server-b53f49b94062bbbf8de8a10c74af4ed8521919cd.zip
Update PHPUnit from 4.X to 6.X in acceptance tests
The PHPUnit update also required an update of "symfony/yaml", so besides the changes needed for PHPUnit the "behat.yml" file also had to be adjusted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/features/bootstrap/CommentsAppContext.php')
-rw-r--r--tests/acceptance/features/bootstrap/CommentsAppContext.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/CommentsAppContext.php b/tests/acceptance/features/bootstrap/CommentsAppContext.php
index 57e60afa60e..577b14b7e72 100644
--- a/tests/acceptance/features/bootstrap/CommentsAppContext.php
+++ b/tests/acceptance/features/bootstrap/CommentsAppContext.php
@@ -22,6 +22,7 @@
*/
use Behat\Behat\Context\Context;
+use PHPUnit\Framework\Assert;
class CommentsAppContext implements Context, ActorAwareInterface {
use ActorAware;
@@ -87,7 +88,7 @@ class CommentsAppContext implements Context, ActorAwareInterface {
$this->actor,
self::emptyContent(),
$timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
- PHPUnit_Framework_Assert::fail("The no comments message is not visible yet after $timeout seconds");
+ Assert::fail("The no comments message is not visible yet after $timeout seconds");
}
}
@@ -95,7 +96,7 @@ class CommentsAppContext implements Context, ActorAwareInterface {
* @Then /^I see a comment with "([^"]*)" as message$/
*/
public function iSeeACommentWithAsMessage($commentText) {
- PHPUnit_Framework_Assert::assertTrue(
+ Assert::assertTrue(
$this->actor->find(self::commentWithText($commentText), 10)->isVisible());
}
@@ -104,7 +105,7 @@ class CommentsAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatThereIsNoCommentWithAsMessage($commentText) {
try {
- PHPUnit_Framework_Assert::assertFalse(
+ Assert::assertFalse(
$this->actor->find(self::commentWithText($commentText))->isVisible());
} catch (NoSuchElementException $exception) {
}