diff --git a/src/Concerns/MakesAssertions.php b/src/Concerns/MakesAssertions.php index 30d6b9b5c..0e17b8ad0 100644 --- a/src/Concerns/MakesAssertions.php +++ b/src/Concerns/MakesAssertions.php @@ -585,7 +585,7 @@ public function assertAttribute($selector, $attribute, $value) */ public function assertDataAttribute($selector, $attribute, $value) { - return $this->assertAttribute($selector, 'data-' . $attribute, $value); + return $this->assertAttribute($selector, 'data-'.$attribute, $value); } /** @@ -598,7 +598,7 @@ public function assertDataAttribute($selector, $attribute, $value) */ public function assertAriaAttribute($selector, $attribute, $value) { - return $this->assertAttribute($selector, 'aria-' . $attribute, $value); + return $this->assertAttribute($selector, 'aria-'.$attribute, $value); } /** diff --git a/tests/MakesAssertionsTest.php b/tests/MakesAssertionsTest.php index d3e33ea0c..eb5da4c37 100644 --- a/tests/MakesAssertionsTest.php +++ b/tests/MakesAssertionsTest.php @@ -74,7 +74,7 @@ public function test_assert_attribute() $this->fail(); } catch (ExpectationFailedException $e) { $this->assertStringContainsString( - "Did not see expected attribute [bar] within element [Foo].", + 'Did not see expected attribute [bar] within element [Foo].', $e->getMessage() ); } @@ -111,7 +111,7 @@ public function test_assert_data_attribute() $this->fail(); } catch (ExpectationFailedException $e) { $this->assertStringContainsString( - "Did not see expected attribute [data-bar] within element [Foo].", + 'Did not see expected attribute [data-bar] within element [Foo].', $e->getMessage() ); } @@ -148,7 +148,7 @@ public function test_assert_aria_attribute() $this->fail(); } catch (ExpectationFailedException $e) { $this->assertStringContainsString( - "Did not see expected attribute [aria-bar] within element [Foo].", + 'Did not see expected attribute [aria-bar] within element [Foo].', $e->getMessage() ); }