From 315064cf9714cd1ae38ed5766a4f00299bd8be08 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 24 Sep 2013 15:10:25 +0200 Subject: Ported some failing functional tests to phpunit+selenium --- tests/test_tools/PradoGenericSeleniumTest.php | 30 +++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'tests/test_tools') diff --git a/tests/test_tools/PradoGenericSeleniumTest.php b/tests/test_tools/PradoGenericSeleniumTest.php index 547ff2f0..922b9d87 100644 --- a/tests/test_tools/PradoGenericSeleniumTest.php +++ b/tests/test_tools/PradoGenericSeleniumTest.php @@ -1,12 +1,38 @@ setBrowser(static::$browser); + $this->setBrowserUrl(static::$baseurl); + } + + protected function tearDown() + { + } +} + +// TODO: stub +class PradoGenericSelenium2Test extends PHPUnit_Extensions_Selenium2TestCase +{ + static $browser='chrome'; + static $baseurl='http://127.0.0.1/prado-3.2/tests/FunctionalTests/'; + protected function setUp() { - $this->setBrowser('*googlechrome'); - $this->setBrowserUrl('http://127.0.0.1/prado-3.2/tests/FunctionalTests/'); + $this->setBrowser(static::$browser); + $this->setBrowserUrl(static::$baseurl); + } + + protected function open($url) + { + $this->setBrowserUrl(static::$baseurl.$url); } protected function tearDown() -- cgit v1.2.3