Skip to content

Commit

Permalink
Update MakesAssertionsTest.php
Browse files Browse the repository at this point in the history
Update test_assert_attribute_does_not_contain to reflect new behaviour.
  • Loading branch information
F2210 authored Jan 6, 2025
1 parent 94e1517 commit e7cc02e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/Unit/MakesAssertionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,15 +683,7 @@ public function test_assert_attribute_does_not_contain()

$browser->assertAttributeDoesntContain('foo', 'bar', 'class-c');

try {
$browser->assertAttributeDoesntContain('foo', 'bar', 'class-c');
$this->fail();
} catch (ExpectationFailedException $e) {
$this->assertStringContainsString(
'Did not see expected attribute [bar] within element [Foo].',
$e->getMessage()
);
}
$browser->assertAttributeDoesntContain('foo', 'bar', 'class-c');

try {
$browser->assertAttributeDoesntContain('foo', 'bar', 'class-1');
Expand Down

0 comments on commit e7cc02e

Please sign in to comment.