[Fusionforge-commits] FusionForge branch master updated. v6.1-221-g4a3335c

Franck Villaume nerville at libremir.placard.fr.eu.org
Wed Feb 6 14:51:08 CET 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  4a3335ccf6e41e5ccb8331598ceed44d07080d3c (commit)
      from  fe1e48008bfb11c152cd0e4ac94d475ded7c97f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=4a3335ccf6e41e5ccb8331598ceed44d07080d3c

commit 4a3335ccf6e41e5ccb8331598ceed44d07080d3c
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Feb 6 13:51:04 2019 +0000

    try a workaround for assertSelected function

diff --git a/tests/func/30_RBAC/rbacTest.php b/tests/func/30_RBAC/rbacTest.php
index 710f89b..6438134 100644
--- a/tests/func/30_RBAC/rbacTest.php
+++ b/tests/func/30_RBAC/rbacTest.php
@@ -81,7 +81,8 @@ class RBAC extends FForge_SeleniumTestCase
 		$this->clickAndWait("//form[contains(@action,'globalroleedit.php')]//input[@value='Edit Role']") ;
 		$this->waitForPageToLoad("30000");
 
-		$this->assertSelected("//select[@name='data[approve_projects][-1]']", "Approve projects");
+		$selectedOptions = $this->select($this->byXpath(("//select[@name='data[approve_projects][-1]']"))->selectedLabels();
+		$this->assertEquals(array("Approve projects"), $selectedOptions);
 		$this->assertNotSelected("//select[@name='data[approve_projects][-1]']", "No Access");
 		$this->assertSelected("//select[@name='data[approve_news][-1]']", "Approve news");
 

-----------------------------------------------------------------------

Summary of changes:
 tests/func/30_RBAC/rbacTest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list