Fixed tests to allow running in subfolder

This commit is contained in:
Ingo Schommer 2013-11-01 00:57:36 +01:00
parent 8e73ed7bdf
commit fbb36c2e2c
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class DMSShortcodeTest extends SapphireTest {
$value = Injector::inst()->create('HTMLValue', $result);
$link = $value->query('//a')->item(0);
$this->assertEquals("/dmsdocument/$document->ID", $link->getAttribute('href'));
$this->assertStringEndsWith("/dmsdocument/$document->ID", $link->getAttribute('href'));
$this->assertEquals($document->getExtension(), $link->getAttribute('data-ext'));
$this->assertEquals($document->getFileSizeFormatted(), $link->getAttribute('data-size'));
}