lots of docs, and some internal changes

This commit is contained in:
Shish
2009-07-21 07:36:12 +01:00
parent 2471a8e2eb
commit 572f84511a
37 changed files with 198 additions and 167 deletions

View File

@@ -11,7 +11,7 @@
*
* Each extension should (although doesn't technically have to) come with a
* test.php file, for example ext/index/test.php. The SimpleSCoreTest
* extension will look for these files and load any ScoreWebTestCase classes
* extension will look for these files and load any SCoreWebTestCase classes
* it finds inside them, then run them and report whether or not the test
* passes.
*
@@ -28,6 +28,9 @@ define('USER_PASS', "test");
define('ADMIN_NAME', "demo");
define('ADMIN_PASS', "demo");
/**
* A set of common SCore activities to test
*/
class SCoreWebTestCase extends WebTestCase {
protected function get_page($page) {
$url = "http://".$_SERVER["HTTP_HOST"].get_base_href().'/'.make_link($page);
@@ -62,6 +65,9 @@ class SCoreWebTestCase extends WebTestCase {
}
}
/**
* A set of common Shimmie activities to test
*/
class ShimmieWebTestCase extends SCoreWebTestCase {
protected function post_image($filename, $tags) {
$image_id = -1;