skip tests if unittest url is not set instead of failing

This commit is contained in:
Christian Weiske 2012-01-25 23:20:51 +01:00
parent e715e41cd9
commit cb4b0469ca

View file

@ -55,7 +55,7 @@ class TestBaseApi extends TestBase
protected function setUp()
{
if ($GLOBALS['unittestUrl'] === null) {
$this->assertTrue(false, 'Unittest URL not set in config');
$this->markTestSkipped('Unittest URL not set in config');
}
if ($this->urlPart === null) {
$this->assertTrue(false, 'Set the urlPart variable');