Skip to content

Commit

Permalink
GLPi => GLPI missed
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jan 9, 2017
1 parent 9661fc6 commit 9474af6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/HtmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,20 +278,20 @@ public function testTimestampToString() {
* @covers Html::weblink_extract
*/
public function testWeblink_extract() {
$origin = '<a href="http://glpi-project.org" class="example">THE GLPi Project!</a>';
$origin = '<a href="http://glpi-project.org" class="example">THE GLPI Project!</a>';
$expected = 'http://glpi-project.org';
$this->assertEquals($expected, Html::weblink_extract($origin));

$origin = '<a href="http://glpi-project.org/?one=two">THE GLPi Project!</a>';
$origin = '<a href="http://glpi-project.org/?one=two">THE GLPI Project!</a>';
$expected = 'http://glpi-project.org/?one=two';
$this->assertEquals($expected, Html::weblink_extract($origin));

//These ones does not work, but probably should...
$origin = '<a class="example" href="http://glpi-project.org">THE GLPi Project!</a>';
$origin = '<a class="example" href="http://glpi-project.org">THE GLPI Project!</a>';
$expected = $origin;
$this->assertEquals($origin, Html::weblink_extract($origin));

$origin = '<a href="http://glpi-project.org" class="example">THE <span>GLPi</span> Project!</a>';
$origin = '<a href="http://glpi-project.org" class="example">THE <span>GLPI</span> Project!</a>';
$expected = $origin;
$this->assertEquals($expected, Html::weblink_extract($origin));
}
Expand Down

0 comments on commit 9474af6

Please sign in to comment.