Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Concerns/MakesAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/MakesAssertionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down Expand Up @@ -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()
);
}
Expand Down Expand Up @@ -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()
);
}
Expand Down