summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-06-12 15:32:40 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-06-12 15:32:40 +0200
commite65fd1141909608862f95c582ac98ab2b07f632b (patch)
tree0313d6ecca86595aa265f66a62c702094e2e3780 /tests/acceptance
parent7382655a2c5a613cc923e9abd8142119d9de8d5c (diff)
downloadnextcloud-server-e65fd1141909608862f95c582ac98ab2b07f632b.tar.gz
nextcloud-server-e65fd1141909608862f95c582ac98ab2b07f632b.zip
Add messages to assertFalse/True to clarify the failed assertion
Otherwise the output would just read "Failed asserting that true is false." or "Failed asserting that false is true.", which is not very informative when there are several assertFalse/True in a row. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/bootstrap/PublicShareContext.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/PublicShareContext.php b/tests/acceptance/features/bootstrap/PublicShareContext.php
index 02508330391..891c231b164 100644
--- a/tests/acceptance/features/bootstrap/PublicShareContext.php
+++ b/tests/acceptance/features/bootstrap/PublicShareContext.php
@@ -202,11 +202,14 @@ class PublicShareContext implements Context, ActorAwareInterface {
// download item should not be shown in the menu (although it will be in
// the DOM).
PHPUnit_Framework_Assert::assertFalse(
- $this->actor->find(self::downloadItemInShareMenu())->isVisible());
+ $this->actor->find(self::downloadItemInShareMenu())->isVisible(),
+ "Download item in share menu is visible");
PHPUnit_Framework_Assert::assertTrue(
- $this->actor->find(self::directLinkItemInShareMenu())->isVisible());
+ $this->actor->find(self::directLinkItemInShareMenu())->isVisible(),
+ "Direct link item in share menu is not visible");
PHPUnit_Framework_Assert::assertTrue(
- $this->actor->find(self::saveItemInShareMenu())->isVisible());
+ $this->actor->find(self::saveItemInShareMenu())->isVisible(),
+ "Save item in share menu is not visible");
}
/**