mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Fixed tests to allow running in subfolder
This commit is contained in:
parent
8e73ed7bdf
commit
fbb36c2e2c
@ -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'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user