From cda714c353f489717442e04a1979fcc988e5aa08 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 15 Apr 2015 12:14:58 +0200 Subject: remove test for global article enhancer --- .../articleenhancer/GlobalArticleEnhancerTest.php | 81 ---------------------- 1 file changed, 81 deletions(-) delete mode 100644 tests/unit/articleenhancer/GlobalArticleEnhancerTest.php (limited to 'tests') diff --git a/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php b/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php deleted file mode 100644 index 79647a882..000000000 --- a/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @author Bernhard Posselt - * @copyright Alessandro Cosentino 2012 - * @copyright Bernhard Posselt 2012, 2014 - */ - -namespace OCA\News\ArticleEnhancer; - -use \OCA\News\Db\Item; - - -class GlobalArticleEnhancerTest extends \PHPUnit_Framework_TestCase { - - private $enhancer; - - protected function setUp() { - $this->enhancer = new GlobalArticleEnhancer(); - } - - - public function testNoReplaceYoutubeAutoplay() { - $body = ''; - $expected = '
'; - $item = new Item(); - $item->setBody($body); - - $result = $this->enhancer->enhance($item); - $this->assertEquals($expected, $result->getBody()); - } - - - public function testReplaceYoutubeAutoplay() { - $body = 'test '; - $expected = '
test
'; - $item = new Item(); - $item->setBody($body); - - $result = $this->enhancer->enhance($item); - $this->assertEquals($expected, $result->getBody()); - } - - - public function testMultipleParagraphs() { - $body = '

paragraph 1

paragraph 2

'; - $expected = '
' . $body . '
'; - $item = new Item(); - $item->setBody($body); - - $result = $this->enhancer->enhance($item); - $this->assertEquals($expected, $result->getBody()); - } - - - public function testMultipleParagraphsInDiv() { - $body = '

paragraph 1

paragraph 2

'; - $expected = '
' . $body . '
'; - $item = new Item(); - $item->setBody($body); - - $result = $this->enhancer->enhance($item); - $this->assertEquals($expected, $result->getBody()); - } - -} -- cgit v1.2.3