From 9311fea09b7eefb3cdcd3f266099348019b82484 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Tue, 26 May 2015 07:55:39 -0400
Subject: [PATCH] Add utility functiion to get an elemet's text content also when running tests in PhantomJS

---
 tests/Selenium/Mail/Getunread.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/Selenium/Mail/Getunread.php b/tests/Selenium/Mail/Getunread.php
index 16b6bd1..c18ddc0 100644
--- a/tests/Selenium/Mail/Getunread.php
+++ b/tests/Selenium/Mail/Getunread.php
@@ -32,6 +32,6 @@
         $this->assertHasClass('unread', $li);
 
         $badge = $this->byCssSelector('.folderlist li.inbox span.unreadcount');
-        $this->assertEquals(strval($this->msgcount), $badge->text());
+        $this->assertEquals(strval($this->msgcount), $this->getText($badge));
     }
 }

--
Gitblit v1.9.1