Skip to content

Commit 8db1b58

Browse files
committed
fix: adjust method name from toNotHaveTitle() to asserTitleIsNot() in order to mimic Dusk API
1 parent 6084b08 commit 8db1b58

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @internal
1111
*/
12-
final readonly class ToNotHaveTitle implements Operation
12+
final readonly class AssertTitleIsNot implements Operation
1313
{
1414
/**
1515
* Creates an operation instance.

src/PendingTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public function toHaveTitle(string $title): self
6262
/**
6363
* Checks if the page does not have a title.
6464
*/
65-
public function toNotHaveTitle(string $title): self
65+
public function asserTitleIsNot(string $title): self
6666
{
67-
$this->operations[] = new Operations\ToNotHaveTitle($title);
67+
$this->operations[] = new Operations\AssertTitleIsNot($title);
6868

6969
return $this;
7070
}

tests/Example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626

2727
it('should not have the title "Laravel Dusk"', function () {
2828
visit('https://laravel.com')
29-
->toNotHaveTitle('Laravel Dusk');
29+
->asserTitleIsNot('Laravel Dusk');
3030
});

0 commit comments

Comments
 (0)