From fbb36c2e2c5193dffe22427ba9be510b2b5dcee0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 1 Nov 2013 00:57:36 +0100 Subject: [PATCH] Fixed tests to allow running in subfolder --- tests/DMSShortcodeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DMSShortcodeTest.php b/tests/DMSShortcodeTest.php index 4cbe864..7bc379f 100644 --- a/tests/DMSShortcodeTest.php +++ b/tests/DMSShortcodeTest.php @@ -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')); }