Skip to content

Commit 782d6e0

Browse files
committed
Update validation message
1 parent aedef61 commit 782d6e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Rules/AuthorOwnsSeriesRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public function passes($attribute, $value): bool
1818

1919
public function message(): string
2020
{
21-
return 'The :attribute field does not belong to you.';
21+
return 'The selected series does not belong to you.';
2222
}
2323
}

tests/Feature/ArticleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function users_cannot_create_an_article_using_a_series_they_do_not_own()
7070
]);
7171

7272
$response->assertSessionHas('error', 'Something went wrong. Please review the fields below.');
73-
$response->assertSessionHasErrors(['series' => 'The series field does not belong to you.']);
73+
$response->assertSessionHasErrors(['series' => 'The selected series does not belong to you.']);
7474
}
7575

7676
/** @test */
@@ -164,7 +164,7 @@ public function users_cannot_edit_an_article_using_a_series_they_do_not_own()
164164
]);
165165

166166
$response->assertSessionHas('error', 'Something went wrong. Please review the fields below.');
167-
$response->assertSessionHasErrors(['series' => 'The series field does not belong to you.']);
167+
$response->assertSessionHasErrors(['series' => 'The selected series does not belong to you.']);
168168
}
169169

170170
/** @test */

0 commit comments

Comments
 (0)