Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cintra committed Jun 4, 2024
1 parent d0c94c6 commit 9a12972
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions stubs/modules/Blog/Tests/AuthorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down Expand Up @@ -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);

Expand All @@ -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',
]);
Expand All @@ -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');

Expand Down
8 changes: 4 additions & 4 deletions stubs/modules/Blog/Tests/CategoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down Expand Up @@ -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);

Expand All @@ -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,
]);
Expand All @@ -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');

Expand Down
8 changes: 4 additions & 4 deletions stubs/modules/Blog/Tests/PostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down Expand Up @@ -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);

Expand All @@ -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',
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 9a12972

Please sign in to comment.