Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 5, 2023
1 parent 2fa73fe commit 5b3337d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion src/Concerns/MakesAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ public function assertAttributeContains($selector, $attribute, $value)
* @param string $value
* @return $this
*/
public function assertAttributeDoesNotContain($selector, $attribute, $value)
public function assertAttributeDoesntContain($selector, $attribute, $value)
{
$fullSelector = $this->resolver->format($selector);

Expand Down Expand Up @@ -1115,6 +1115,19 @@ public function assertVueContains($key, $value, $componentSelector = null)
return $this;
}

/**
* Assert that a given Vue component data property is an array and does not contain the given value.
*
* @param string $key
* @param string $value
* @param string|null $componentSelector
* @return $this
*/
public function assertVueDoesntContain($key, $value, $componentSelector = null)
{
return $this->assertVueDoesNotContain($key, $value, $componentSelector);
}

/**
* Assert that a given Vue component data property is an array and does not contain the given value.
*
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/MakesAssertionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,10 @@ public function test_assert_attribute_does_not_contain()

$browser = new Browser($driver, $resolver);

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

try {
$browser->assertAttributeDoesNotContain('foo', 'bar', 'class-c');
$browser->assertAttributeDoesntContain('foo', 'bar', 'class-c');
$this->fail();
} catch (ExpectationFailedException $e) {
$this->assertStringContainsString(
Expand All @@ -665,7 +665,7 @@ public function test_assert_attribute_does_not_contain()
}

try {
$browser->assertAttributeDoesNotContain('foo', 'bar', 'class-1');
$browser->assertAttributeDoesntContain('foo', 'bar', 'class-1');
$this->fail();
} catch (ExpectationFailedException $e) {
$this->assertStringContainsString(
Expand Down

0 comments on commit 5b3337d

Please sign in to comment.