From 9a12972c14e262f3fff2d658b7c5952c761be919 Mon Sep 17 00:00:00 2001 From: Daniel Cintra Date: Mon, 3 Jun 2024 21:06:15 -0300 Subject: [PATCH] Fix code style. --- stubs/modules/Blog/Tests/AuthorTest.php | 8 ++++---- stubs/modules/Blog/Tests/CategoryTest.php | 8 ++++---- stubs/modules/Blog/Tests/PostTest.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/stubs/modules/Blog/Tests/AuthorTest.php b/stubs/modules/Blog/Tests/AuthorTest.php index c566773..1ded3e3 100644 --- a/stubs/modules/Blog/Tests/AuthorTest.php +++ b/stubs/modules/Blog/Tests/AuthorTest.php @@ -22,7 +22,7 @@ afterEach(function () { if ($this->author->image) { - Storage::disk('public')->delete('blog/' . $this->author->image); + Storage::disk('public')->delete('blog/'.$this->author->image); } }); @@ -76,7 +76,7 @@ }); test('author edit page can be rendered', function () { - $response = $this->loggedRequest->get('/admin/blog-author/' . $this->author->id . '/edit'); + $response = $this->loggedRequest->get('/admin/blog-author/'.$this->author->id.'/edit'); $response->assertStatus(200); @@ -99,7 +99,7 @@ }); test('author can be updated', function () { - $response = $this->loggedRequest->put('/admin/blog-author/' . $this->author->id, [ + $response = $this->loggedRequest->put('/admin/blog-author/'.$this->author->id, [ 'name' => 'New Name', 'email' => 'new@email.com', ]); @@ -125,7 +125,7 @@ }); test('author can be deleted', function () { - $response = $this->loggedRequest->delete('/admin/blog-author/' . $this->user->id); + $response = $this->loggedRequest->delete('/admin/blog-author/'.$this->user->id); $response->assertRedirect('/admin/blog-author'); diff --git a/stubs/modules/Blog/Tests/CategoryTest.php b/stubs/modules/Blog/Tests/CategoryTest.php index d9deb12..7dd90a6 100644 --- a/stubs/modules/Blog/Tests/CategoryTest.php +++ b/stubs/modules/Blog/Tests/CategoryTest.php @@ -23,7 +23,7 @@ afterEach(function () { if ($this->category->image) { - Storage::disk('public')->delete('blog/' . $this->category->image); + Storage::disk('public')->delete('blog/'.$this->category->image); } }); @@ -75,7 +75,7 @@ }); test('category edit page can be rendered', function () { - $response = $this->loggedRequest->get('/admin/blog-category/' . $this->category->id . '/edit'); + $response = $this->loggedRequest->get('/admin/blog-category/'.$this->category->id.'/edit'); $response->assertStatus(200); @@ -99,7 +99,7 @@ }); test('category can be updated', function () { - $response = $this->loggedRequest->put('/admin/blog-category/' . $this->category->id, [ + $response = $this->loggedRequest->put('/admin/blog-category/'.$this->category->id, [ 'name' => 'New Name', 'is_visible' => true, ]); @@ -123,7 +123,7 @@ }); test('category can be deleted', function () { - $response = $this->loggedRequest->delete('/admin/blog-category/' . $this->user->id); + $response = $this->loggedRequest->delete('/admin/blog-category/'.$this->user->id); $response->assertRedirect('/admin/blog-category'); diff --git a/stubs/modules/Blog/Tests/PostTest.php b/stubs/modules/Blog/Tests/PostTest.php index 8a193c2..6a5ab57 100644 --- a/stubs/modules/Blog/Tests/PostTest.php +++ b/stubs/modules/Blog/Tests/PostTest.php @@ -22,7 +22,7 @@ afterEach(function () { if ($this->post->image) { - Storage::disk('public')->delete('blog/' . $this->post->image); + Storage::disk('public')->delete('blog/'.$this->post->image); } }); @@ -77,7 +77,7 @@ }); test('post edit page can be rendered', function () { - $response = $this->loggedRequest->get('/admin/blog-post/' . $this->post->id . '/edit'); + $response = $this->loggedRequest->get('/admin/blog-post/'.$this->post->id.'/edit'); $response->assertStatus(200); @@ -104,7 +104,7 @@ }); test('post can be updated', function () { - $response = $this->loggedRequest->put('/admin/blog-post/' . $this->post->id, [ + $response = $this->loggedRequest->put('/admin/blog-post/'.$this->post->id, [ 'blog_author_id' => null, 'blog_category_id' => null, 'title' => 'New Post Title', @@ -133,7 +133,7 @@ }); test('post can be deleted', function () { - $response = $this->loggedRequest->delete('/admin/blog-post/' . $this->user->id); + $response = $this->loggedRequest->delete('/admin/blog-post/'.$this->user->id); $response->assertRedirect('/admin/blog-post');