forked from Cavemanon/cavepaintings
lots of docs, and some internal changes
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user