From e7cc02e1ca7e290229c3f58c70b22a68f64979fe Mon Sep 17 00:00:00 2001 From: Jacco Broeren Date: Mon, 6 Jan 2025 10:43:34 +0100 Subject: [PATCH] Update MakesAssertionsTest.php Update test_assert_attribute_does_not_contain to reflect new behaviour. --- tests/Unit/MakesAssertionsTest.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/Unit/MakesAssertionsTest.php b/tests/Unit/MakesAssertionsTest.php index 3160ffd43..ebea4026a 100644 --- a/tests/Unit/MakesAssertionsTest.php +++ b/tests/Unit/MakesAssertionsTest.php @@ -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');