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  9766040f43d75576f7766a43265199f2ed639a7b (commit)
      from  8483df432ea8784edd9c78513801bdd9329839de (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=9766040f43d75576f7766a43265199f2ed639a7b

commit 9766040f43d75576f7766a43265199f2ed639a7b
Author: Franck Villaume <[email protected]>
Date:   Fri Jul 15 13:50:56 2016 +0200

    test: add folder rename test

diff --git a/tests/func/20_Docs/folderTest.php 
b/tests/func/20_Docs/folderTest.php
new file mode 100644
index 0000000..a26d091
--- /dev/null
+++ b/tests/func/20_Docs/folderTest.php
@@ -0,0 +1,46 @@
+<?php
+/**
+ * Copyright 2016, Franck Villaume - TrivialDev
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+require_once dirname(dirname(__FILE__)).'/SeleniumForge.php';
+
+class folderTest extends FForge_SeleniumTestCase {
+       public $fixture = 'projecta';
+
+       function updateFolderName() {
+               $this->loadAndCacheFixture();
+               $this->switchUser(FORGE_ADMIN_USERNAME);
+
+               $this->gotoProject('ProjectA');
+               $this->clickAndWait("link=Docs");
+               $this->clickAndWait("addItemDocmanMenu");
+               // ugly hack until we fix behavior in docman when no folders 
exist. We need to click twice on the link
+               $this->clickAndWait("addItemDocmanMenu");
+               $this->click("id=tabs-new-folder");
+               $this->type("groupname", "renamedirectory");
+               $this->clickAndWait("submitaddsubgroup");
+               $this->clickAndWait("id=listFileDocmanMenu");
+               $this->clickAndWait("link=renamedirectory");
+               $this->click("//a[@id='docman-editdirectory']/img");
+               $this->type("document.editgroup.groupname", "renamedirectory2");
+               $this->clickAndWait("document.editgroup.elements['submit']");
+               $this->assertTextPresent("Documents folder renamedirectory2 
updated successfully");
+       }
+}

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

Summary of changes:
 .../{20_FRS/FRSTest.php => 20_Docs/folderTest.php} | 30 ++++++++++++----------
 1 file changed, 17 insertions(+), 13 deletions(-)
 copy tests/func/{20_FRS/FRSTest.php => 20_Docs/folderTest.php} (53%)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to