Skip to content

Commit

Permalink
Fix tests that need test config
Browse files Browse the repository at this point in the history
- some tests needed missing call to markTestNeedsTestConfig, such that they can
  be called standalone
  • Loading branch information
Philipp Frischmuth committed Aug 30, 2012
1 parent 4df5cac commit e1397e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/unit/Erfurt/Owl/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ protected function tearDown()

public function testObjectCreationWithoutBaseUriAndWithoutImports()
{
$this->markTestNeedsTestConfig();

$model = new Erfurt_Owl_Model('http://example.org/model/');
$this->assertTrue($model instanceof Erfurt_Owl_Model);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Erfurt/Rdf/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ public function testUpdateWithMutualDifferenceObjectsDifferInValue()

public function testGetBaseIriWithEmptyBaseReturnsModelIri()
{
$this->markTestNeedsTestConfig();

$model1 = new Erfurt_Rdf_Model('http://example.org/');
$model2 = new Erfurt_Rdf_Model('http://example.org/', 'http://example.org/resources/');

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Erfurt/VersioningTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Erfurt_VersioningTest extends Erfurt_TestCase
*/
protected function setUp()
{
$this->markTestNeedsTestConfig();

$this->_storeStub = new Erfurt_Versioning_StoreStub();
$this->_authStub = new Erfurt_Versioning_AuthStub();
$this->_object = $this->_getMockedVersioning();
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/Erfurt/Wrapper/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public function testAddWrapperPathWithExistingPath()
}

public function testWrapperInstantiation()
{
{
$this->markTestNeedsTestConfig();

$this->_manager->addWrapperPath($this->_resourcesPath);

$registry = Erfurt_Wrapper_Registry::getInstance();
Expand Down

0 comments on commit e1397e1

Please sign in to comment.