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.
This commit is contained in:
Lev Lazinskiy
2016-06-08 19:02:46 -07:00
parent 216a8c6647
commit 7464607195
3 changed files with 117 additions and 0 deletions

18
tests/acceptance/Base.php Normal file
View File

@@ -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();
}
}