Skip to content

Commit

Permalink
better name
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Aug 3, 2023
1 parent 4aa1740 commit 2b607cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Feature/IcsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,18 @@ public function throwsValidationErrorWhenEventDoesNotOccurOnDate()
{
Carbon::setTestNow(now()->setTimeFromTimeString('10:00'));

$response = $this->get(route('statamic.events.ics.show', [
$this->get(route('statamic.events.ics.show', [
'date' => now()->addDay()->toDateString(),
'event' => 'the-id',
]))->assertSessionHasErrors('event_date');
}

/** @test */
public function throwsValidationErrorWhenEventDoesNotExist()
public function throws404ErrorWhenEventDoesNotExist()
{
Carbon::setTestNow(now()->setTimeFromTimeString('10:00'));

$response = $this->get(route('statamic.events.ics.show', [
$this->get(route('statamic.events.ics.show', [
'date' => now()->addDay()->toDateString(),
'event' => 'does-not-exist',
]))->assertStatus(404);
Expand Down

0 comments on commit 2b607cb

Please sign in to comment.