diff options
author | Lev Lazinskiy <lev@circleci.com> | 2016-06-08 19:02:46 -0700 |
---|---|---|
committer | Lev Lazinskiy <lev@circleci.com> | 2016-06-08 19:02:46 -0700 |
commit | 7464607195bb84b2a7b6f1e2ad3b208fe37dc336 (patch) | |
tree | 1e61e6aade07ffcf5877c57e219100a276e75409 /tests/acceptance/Base.php | |
parent | 216a8c66471c323cab4ea32cc4cdb0a5027ba6ff (diff) |
Add acceptance tests
Basic Framework for working with Selenium with PHPUnit and Firefox.
Future acceptance tests just need to extend Base.php and implement
various flows that we wish to test.
Diffstat (limited to 'tests/acceptance/Base.php')
-rw-r--r-- | tests/acceptance/Base.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/acceptance/Base.php b/tests/acceptance/Base.php new file mode 100644 index 00000000..e8684a9b --- /dev/null +++ b/tests/acceptance/Base.php @@ -0,0 +1,18 @@ +<?php + +class Base extends PHPUnit_Extensions_Selenium2TestCase +{ + + public function setUp() + { + $this->setHost(SELENIUM_HOST); + $this->setPort((integer) SELENIUM_PORT); + $this->setBrowserUrl(KANBOARD_APP_URL); + $this->setBrowser(DEFAULT_BROWSER); + } + + public function tearDown() + { + $this->stop(); + } +} |