summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authorwei <>2006-01-22 02:32:23 +0000
committerwei <>2006-01-22 02:32:23 +0000
commit1fc6971652492fca325bd25d7b6dd979ebde73ed (patch)
treed7179ce6af434f6766e543d3fb8dc134f663cb4f /tests/FunctionalTests
parentd4b3de52d0a0a2d394bf4763984029972b5131b1 (diff)
Adding quickstart_tests
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r--tests/FunctionalTests/index.php7
-rw-r--r--tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php12
2 files changed, 18 insertions, 1 deletions
diff --git a/tests/FunctionalTests/index.php b/tests/FunctionalTests/index.php
index da60b2f0..47ef19ce 100644
--- a/tests/FunctionalTests/index.php
+++ b/tests/FunctionalTests/index.php
@@ -8,7 +8,12 @@ class BrowserTestConfig extends PradoTestConfig
public function unit_test_groups()
{
$groups = array();
- $this->get_directories($this->tests_directory(),$groups);
+
+ $this->get_directories(dirname(__FILE__).'/quickstart_tests', $groups);
+
+ //for tests in the protected dirs
+ //$this->get_directories($this->tests_directory(),$groups);
+
return $groups;
}
diff --git a/tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php b/tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php
new file mode 100644
index 00000000..1edb844e
--- /dev/null
+++ b/tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php
@@ -0,0 +1,12 @@
+<?php
+
+class HelloWorldTestCase extends SeleniumTestCase
+{
+ function testButton()
+ {
+ $this->open('../../demos/quickstart/index.php?page=Fundamentals.Samples.HelloWorld.Home');
+ $this->verifyTitle('Hello World');
+ }
+}
+
+?> \ No newline at end of file