Skip to content

Commit

Permalink
Add a test for HTML5 data attributes to testAssertNotHasElementWithAt…
Browse files Browse the repository at this point in the history
…tributes()
  • Loading branch information
stevegrunwell committed Oct 25, 2017
1 parent 9723456 commit 76c5092
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/MarkupAssertionsTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function testAssertNotHasElementWithAttributes()
'type' => 'email',
'value' => '[email protected]',
],
'<label>City</label><br><input type="text" value="New York" />'
'<label>City</label><br><input type="text" value="New York" data-foo="bar" />'
);
}

Expand Down Expand Up @@ -129,6 +129,12 @@ public function attributeProvider()
],
'[checked]',
],
'Data attribute' => [
[
'data-foo' => 'bar',
],
'[data-foo="bar"]',
],
'Value contains quotes' => [
[
'name' => 'Austin "Danger" Powers',
Expand Down

0 comments on commit 76c5092

Please sign in to comment.