Skip to content

Commit

Permalink
[+]: added one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Jun 28, 2016
1 parent c60398f commit f8ae2fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/HtmlDomParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ public function testEditLinks()
'Google+ && Twitter || Lînux' => 'Google+ && Twitter || Lînux',
'<a href="http://foobar.de[[foo]]&{{foobar}}&lall=1">foo</a>' => '<a onclick="$.get(\'/incext.php?brandcontact=1&click=1&page_id=1&brand=foobar&domain=foobar.de%5B%5Bfoo%5D%5D%26%7B%7Bfoobar%7D%7D%26lall%3D1\');" href="http://foobar.de[[foo]]&{{foobar}}&lall=1" data-url-parse="done">foo</a>',
'' => '',
'<a href=""><span>lalll=###test###&bar=%5B%5Bfoobar%5D%5D&test=[[foobar]]&foo={{lall}}</span><img src="http://foobar?lalll=###test###&bar=%5B%5Bfoobar%5D%5D&test=[[foobar]]&foo={{lall}}" style="max-width:600px;" alt="Ihr Unternehmen in den wichtigsten Online-Verzeichnissen" class="headerImage" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext /></a>' => '<a onclick="$.get(\'/incext.php?brandcontact=1&click=1&page_id=1&brand=foobar&domain=\');" href="" data-url-parse="done"><span>lalll=###test###&bar=%5B%5Bfoobar%5D%5D&test=[[foobar]]&foo={{lall}}</span><img src="http://foobar?lalll=###test###&bar=%5B%5Bfoobar%5D%5D&test=[[foobar]]&foo={{lall}}" style="max-width:600px;" alt="Ihr Unternehmen in den wichtigsten Online-Verzeichnissen" class="headerImage" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext></a>',
);

foreach($texts as $text => $expected) {
Expand Down

0 comments on commit f8ae2fc

Please sign in to comment.