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:
18
tests/acceptance/Base.php
Normal file
18
tests/acceptance/Base.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user