-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change route names to be less colliding.
- Loading branch information
Showing
4 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,23 +20,23 @@ public function it_returns_emails() | |
); | ||
|
||
$this->withoutExceptionHandling(); | ||
$response = $this->get(route('mail.index')) | ||
$response = $this->get(route('nova-mailman.index')) | ||
->assertSuccessful() | ||
->assertJson([ | ||
[ | ||
'id' => 'unique-mail-identifier', | ||
'recipient' => $recipient, | ||
'subject' => $subject, | ||
'sent_at' => time(), | ||
'link' => route('mail.show', 'unique-mail-identifier'), | ||
'link' => route('nova-mailman.show', 'unique-mail-identifier'), | ||
], | ||
]); | ||
} | ||
|
||
/** @test */ | ||
public function it_gives_empty_response_upon_missing_directory() | ||
{ | ||
$this->get(route('mail.index')) | ||
$this->get(route('nova-mailman.index')) | ||
->assertSuccessful() | ||
->assertJson([]); | ||
} | ||
|
@@ -54,7 +54,7 @@ public function it_can_return_the_view_for_a_given_mail() | |
$recipient = '[email protected]' | ||
); | ||
|
||
$this->get(route('mail.show', 'unique-mail-identifier')) | ||
$this->get(route('nova-mailman.show', 'unique-mail-identifier')) | ||
->assertSuccessful() | ||
->assertViewIs('nova-mailman-mails::unique-mail-identifier'); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ public function it_stores_email_metadata_in_a_json_file() | |
'subject' => $message->getSubject(), | ||
'recipient' => '[email protected]', | ||
'sent_at' => time(), | ||
'link' => route('mail.show', 'unique-identifier'), | ||
'link' => route('nova-mailman.show', 'unique-identifier'), | ||
], | ||
json_decode($file, true) | ||
); | ||
|