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');