forked from eatvio/eatvio-infra
rename method tests edit
This commit is contained in:
@@ -32,7 +32,7 @@ class EditTest extends TestCase
|
||||
$this->blogPost = BlogPost::factory()->create();
|
||||
}
|
||||
|
||||
public function test_show_form_edit_blog_post_success_for_author(): void
|
||||
public function test_show_form_edit_blog_post_success_for_author_user(): void
|
||||
{
|
||||
$this->user->author_of_blog_post()->attach($this->blogPost->id);
|
||||
$response = $this
|
||||
@@ -63,7 +63,7 @@ class EditTest extends TestCase
|
||||
$response->assertSuccessful();
|
||||
}
|
||||
|
||||
public function test_show_form_edit_blog_post_forbidden_for_not_author(): void
|
||||
public function test_show_form_edit_blog_post_forbidden_for_user(): void
|
||||
{
|
||||
$blogPost = BlogPost::factory()->create();
|
||||
$user = User::factory()->create();
|
||||
|
||||
Reference in New Issue
Block a user