From 52d421e3cad9cb3ce593da0f967b17803191de0e Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 04:56:04 +0000 Subject: [PATCH] BUGFIX: Fixed FileLinkTrackingTest to cope with the empty alt="" and title="" attributes that are created (from r101129) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111595 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/FileLinkTrackingTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/FileLinkTrackingTest.php b/tests/FileLinkTrackingTest.php index fdc05e9be..91b04c585 100644 --- a/tests/FileLinkTrackingTest.php +++ b/tests/FileLinkTrackingTest.php @@ -26,15 +26,15 @@ class FileLinkTrackingTest extends SapphireTest { function testFileRenameUpdatesDraftAndPublishedPages() { $page = $this->objFromFixture('Page', 'page1'); $this->assertTrue($page->doPublish()); - $this->assertContains('', + $this->assertContains('ID")->value()); $file = $this->objFromFixture('File', 'file1'); $file->Name = 'renamed-test-file.pdf'; - $this->assertContains('', + $this->assertContains('ID")->value()); - $this->assertContains('', + $this->assertContains('ID")->value()); } @@ -54,9 +54,9 @@ class FileLinkTrackingTest extends SapphireTest { $file->Name = 'renamed-test-file.pdf'; // Verify that the draft and publish virtual pages both have the corrected link - $this->assertContains('', + $this->assertContains('ID")->value()); - $this->assertContains('', + $this->assertContains('ID")->value()); } @@ -81,7 +81,7 @@ class FileLinkTrackingTest extends SapphireTest { function testTwoFileRenamesInARowWork() { $page = $this->objFromFixture('Page', 'page1'); $this->assertTrue($page->doPublish()); - $this->assertContains('', + $this->assertContains('ID")->value()); // Rename the file twice @@ -93,9 +93,9 @@ class FileLinkTrackingTest extends SapphireTest { $file->write(); // Confirm that the correct image is shown in both the draft and live site - $this->assertContains('', + $this->assertContains('ID")->value()); - $this->assertContains('', + $this->assertContains('ID")->value()); } }