diff options
Diffstat (limited to 'tests/unit/articleenhancer/RegexArticleEnhancerTest.php')
-rw-r--r-- | tests/unit/articleenhancer/RegexArticleEnhancerTest.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unit/articleenhancer/RegexArticleEnhancerTest.php b/tests/unit/articleenhancer/RegexArticleEnhancerTest.php index a08371f47..018a596fa 100644 --- a/tests/unit/articleenhancer/RegexArticleEnhancerTest.php +++ b/tests/unit/articleenhancer/RegexArticleEnhancerTest.php @@ -19,17 +19,17 @@ use \OCA\News\Db\Item; class RegexArticleEnhancerTest extends \PHPUnit_Framework_TestCase { - public function testRegexEnhancer() { - $item = new Item(); - $item->setBody('atests is a nice thing'); - $item->setUrl('http://john.com'); - $regex = ["%tes(ts)%" => "heho$1tests"]; - - $regexEnhancer = new RegexArticleEnhancer('%john.com%', $regex); - $item = $regexEnhancer->enhance($item); - - $this->assertEquals('ahehotstests is a nice thing', $item->getBody()); - } + public function testRegexEnhancer() { + $item = new Item(); + $item->setBody('atests is a nice thing'); + $item->setUrl('http://john.com'); + $regex = ["%tes(ts)%" => "heho$1tests"]; + + $regexEnhancer = new RegexArticleEnhancer('%john.com%', $regex); + $item = $regexEnhancer->enhance($item); + + $this->assertEquals('ahehotstests is a nice thing', $item->getBody()); + } }
\ No newline at end of file |