summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-10-20 15:48:48 +0200
committerRobin Appelman <icewind@owncloud.com>2013-10-20 15:48:48 +0200
commit9666a55c073a231599493251e301d584515bdbb0 (patch)
tree923b30792d2e221f4580d56bf74b3234f168e717 /tests
parent0b5c9ad04441a56d9e0c59fd2c8e9b358056d36e (diff)
adjust tests to xpathenhancer fallback behaviour
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/articleenhancer/XPathArticleEnhancerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/articleenhancer/XPathArticleEnhancerTest.php b/tests/unit/articleenhancer/XPathArticleEnhancerTest.php
index 26381057c..798fa9203 100644
--- a/tests/unit/articleenhancer/XPathArticleEnhancerTest.php
+++ b/tests/unit/articleenhancer/XPathArticleEnhancerTest.php
@@ -149,7 +149,7 @@ class XPathArticleEnhancerTest extends \OCA\AppFramework\Utility\TestUtility {
->will($this->returnValue(null));
$result = $this->testEnhancer->enhance($item);
- $this->assertEquals(null, $result->getBody());
+ $this->assertEquals('Hello thar', $result->getBody());
}
@@ -172,7 +172,7 @@ class XPathArticleEnhancerTest extends \OCA\AppFramework\Utility\TestUtility {
->will($this->returnValue(null));
$result = $this->testEnhancer->enhance($item);
- $this->assertEquals(null, $result->getBody());
+ $this->assertEquals('Hello thar', $result->getBody());
}
@@ -200,7 +200,7 @@ class XPathArticleEnhancerTest extends \OCA\AppFramework\Utility\TestUtility {
->will($this->returnValue(null));
$result = $this->testEnhancer->enhance($item);
- $this->assertEquals(null, $result->getBody());
+ $this->assertEquals('Hello thar', $result->getBody());
}
@@ -285,4 +285,4 @@ class XPathArticleEnhancerTest extends \OCA\AppFramework\Utility\TestUtility {
$this->assertEquals('<img src="http://www.url.com/absolute/url.png"><a target="_blank" href="mailto:test@testsite.com">mail</a>', $result->getBody());
}
-} \ No newline at end of file
+}