-www usr/share/@OLDPACKAGE@/
-www/index_std.php etc/@OLDPACKAGE@/custom/
-utils/install-apache.sh usr/share/@OLDPACKAGE@/bin/
-utils/manage-apache-config.sh usr/share/@OLDPACKAGE@/bin/
-etc/httpd.conf.d-fhs usr/share/@OLDPACKAGE@/etc/
-etc/httpd.conf-fhs usr/share/@OLDPACKAGE@/etc/
-lib/vendor/coolfieldset usr/share/@OLDPACKAGE@/lib/vendor/
-lib/vendor/jquery-simpletreemenu usr/share/@OLDPACKAGE@/lib/vendor/
-lib/vendor/jquery-storage usr/share/@OLDPACKAGE@/lib/vendor/
+www @SOURCE_PATH@/
+www/index_std.php @CONFIG_PATH@/custom/
+utils/install-apache.sh @BINARY_PATH@/
+utils/manage-apache-config.sh @BINARY_PATH@/
+etc/httpd.conf.d-fhs @SOURCE_PATH@/etc/
+etc/httpd.conf-fhs @SOURCE_PATH@/etc/
++lib/vendor/coolfieldset @SOURCE_PATH@/lib/vendor/
++lib/vendor/jquery-simpletreemenu @SOURCE_PATH@/lib/vendor/
++lib/vendor/jquery-storage @SOURCE_PATH@/lib/vendor/
$this->click("link=Home");
$this->waitForPageToLoad("30000");
$this->assertFalse($this->isTextPresent("SubProject"));
+
+ // Make sure permissions are saved for news-related forums
+ $this->switchUser(FORGE_ADMIN_USERNAME);
+ $this->gotoProject ("MetaProject") ;
+
+ $this->click("link=News");
+ $this->waitForPageToLoad("30000");
+ $this->click("link=Submit");
+ $this->waitForPageToLoad("30000");
+ $this->type("summary", "First news");
+ $this->type("details", "This is a simple news.");
+ $this->click("submit");
+ $this->waitForPageToLoad("30000");
+ $this->click("link=News");
+ $this->waitForPageToLoad("30000");
+ $this->assertTrue($this->isTextPresent("First news"));
+ $this->click("link=First news");
+ $this->waitForPageToLoad("30000");
+ $this->assertTrue($this->isTextPresent("First news"));
+ $this->assertTrue($this->isTextPresent("This is a simple news."));
+
+ $this->click("link=Admin");
+ $this->waitForPageToLoad("30000");
+ $this->click("link=Users and permissions");
+ $this->waitForPageToLoad("30000");
+ $this->click ("//td/form/div[contains(.,'Anonymous')]/../div/input[@value='Edit Permissions']") ;
+ $this->waitForPageToLoad("30000");
+
+ $this->select("//tr/td[contains(.,'first-news')]/../td/select", "label=Read only");
+ $this->click ("//input[@value='Submit']") ;
+ $this->waitForPageToLoad("30000");
+ $this->assertSelected("//tr/td[contains(.,'first-news')]/../td/select", "Read only");
+
+ $this->select("//tr/td[contains(.,'first-news')]/../td/select", "label=Moderated post");
+ $this->click ("//input[@value='Submit']") ;
+ $this->waitForPageToLoad("30000");
+ $this->assertSelected("//tr/td[contains(.,'first-news')]/../td/select", "Moderated post");
+
+ $this->select("//tr/td[contains(.,'first-news')]/../td/select", "label=Unmoderated post");
+ $this->click ("//input[@value='Submit']") ;
+ $this->waitForPageToLoad("30000");
+ $this->assertSelected("//tr/td[contains(.,'first-news')]/../td/select", "Unmoderated post");
}
}
-?>