summaryrefslogtreecommitdiff
path: root/framework/cli/views/webapp/protected/tests/WebTestCase.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
commit341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch)
tree1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/cli/views/webapp/protected/tests/WebTestCase.php
yii-framework 1.1.10 hinzugefügtHEADmaster
Diffstat (limited to 'framework/cli/views/webapp/protected/tests/WebTestCase.php')
-rw-r--r--framework/cli/views/webapp/protected/tests/WebTestCase.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/framework/cli/views/webapp/protected/tests/WebTestCase.php b/framework/cli/views/webapp/protected/tests/WebTestCase.php
new file mode 100644
index 0000000..d252bba
--- /dev/null
+++ b/framework/cli/views/webapp/protected/tests/WebTestCase.php
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * Change the following URL based on your server configuration
+ * Make sure the URL ends with a slash so that we can use relative URLs in test cases
+ */
+define('TEST_BASE_URL','http://localhost/testdrive/index-test.php/');
+
+/**
+ * The base class for functional test cases.
+ * In this class, we set the base URL for the test application.
+ * We also provide some common methods to be used by concrete test classes.
+ */
+class WebTestCase extends CWebTestCase
+{
+ /**
+ * Sets up before each test method runs.
+ * This mainly sets the base URL for the test application.
+ */
+ protected function setUp()
+ {
+ parent::setUp();
+ $this->setBrowserUrl(TEST_BASE_URL);
+ }
+}