Skip to content

Commit

Permalink
Add shorthand escape skipping test
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Apr 7, 2019
1 parent a5015c6 commit b23db60
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/EscapingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,17 @@ public function testSkipEscaping()

$this->assertEquals($expected, $meta);
}

public function testShorthandSkipEscaping()
{
$url = 'http://example.com/something?param1=123&param2=456';

$expected = '<meta name="twitter:player" content="' . $url . '" />';

seo()->twitter('player', $url, false);

$meta = seo()->renderContentsArray()[0];

$this->assertEquals($expected, $meta);
}
}

0 comments on commit b23db60

Please sign in to comment.