From 1fc6971652492fca325bd25d7b6dd979ebde73ed Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 22 Jan 2006 02:32:23 +0000 Subject: Adding quickstart_tests --- .gitattributes | 1 + tests/FunctionalTests/index.php | 7 ++++++- .../FunctionalTests/quickstart_tests/HelloWorldTestCase.php | 12 ++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php diff --git a/.gitattributes b/.gitattributes index c683b531..35edacb9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -641,6 +641,7 @@ tests/FunctionalTests/protected/pages/ViewSource.page -text tests/FunctionalTests/protected/pages/ViewSource.php -text tests/FunctionalTests/protected/pages/config.xml -text tests/FunctionalTests/protected/tests/HomePageTest.php -text +tests/FunctionalTests/quickstart_tests/HelloWorldTestCase.php -text tests/FunctionalTests/selenium/SeleneseRunner.html -text tests/FunctionalTests/selenium/SeleniumLog.html -text tests/FunctionalTests/selenium/TestRunner-splash.html -text 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 @@ +open('../../demos/quickstart/index.php?page=Fundamentals.Samples.HelloWorld.Home'); + $this->verifyTitle('Hello World'); + } +} + +?> \ No newline at end of file -- cgit v1.2.3