Unverified Commit e7aa8d81 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #359 from viralsolani/analysis-zGj4LA

Apply fixes from StyleCI
parents b788def5 ab42a44d
...@@ -19,7 +19,7 @@ class PageTest extends TestCase ...@@ -19,7 +19,7 @@ class PageTest extends TestCase
$this->user = User::find(1); $this->user = User::find(1);
$this->token = JWTAuth::fromUser($this->user); $this->token = JWTAuth::fromUser($this->user);
$this->headers = ['Authorization' => 'Bearer ' . $this->token]; $this->headers = ['Authorization' => 'Bearer '.$this->token];
} }
/** /**
...@@ -66,7 +66,7 @@ class PageTest extends TestCase ...@@ -66,7 +66,7 @@ class PageTest extends TestCase
{ {
$page = create(Page::class); $page = create(Page::class);
$payload = []; $payload = [];
$response = $this->json('GET', '/api/v1/pages/' . $page->id, $payload, $this->headers); $response = $this->json('GET', '/api/v1/pages/'.$page->id, $payload, $this->headers);
$response $response
->assertStatus(200) ->assertStatus(200)
->assertJson([ ->assertJson([
...@@ -108,7 +108,7 @@ class PageTest extends TestCase ...@@ -108,7 +108,7 @@ class PageTest extends TestCase
'title' => $page->title, 'title' => $page->title,
'status_label' => $page->status_label, 'status_label' => $page->status_label,
'status' => ($page->isActive()) ? 'Active' : 'InActive', 'status' => ($page->isActive()) ? 'Active' : 'InActive',
'created_by' => '' . $this->user->id, 'created_by' => ''.$this->user->id,
], ],
]); ]);
} }
...@@ -157,7 +157,7 @@ class PageTest extends TestCase ...@@ -157,7 +157,7 @@ class PageTest extends TestCase
{ {
$page = create(Page::class); $page = create(Page::class);
$payload = []; $payload = [];
$response = $this->json('DELETE', '/api/v1/pages/' . $page->id, $payload, $this->headers); $response = $this->json('DELETE', '/api/v1/pages/'.$page->id, $payload, $this->headers);
$response->assertStatus(200) $response->assertStatus(200)
->assertJson([ ->assertJson([
'message' => 'The Page was successfully deleted.', 'message' => 'The Page was successfully deleted.',
......
...@@ -142,7 +142,7 @@ class ManageBlogsTest extends TestCase ...@@ -142,7 +142,7 @@ class ManageBlogsTest extends TestCase
$stored_blog = Blog::find(2); $stored_blog = Blog::find(2);
Storage::disk('public')->assertExists('img/blog/' . $stored_blog->featured_image); Storage::disk('public')->assertExists('img/blog/'.$stored_blog->featured_image);
} }
/** @test */ /** @test */
......
...@@ -38,7 +38,7 @@ class ManageSettingsTest extends TestCase ...@@ -38,7 +38,7 @@ class ManageSettingsTest extends TestCase
'logo' => UploadedFile::fake()->image('logo.jpg', 226, 48), 'logo' => UploadedFile::fake()->image('logo.jpg', 226, 48),
]); ]);
Storage::disk('public')->assertExists('img/logo/' . $this->setting->logo); Storage::disk('public')->assertExists('img/logo/'.$this->setting->logo);
} }
/** @test */ /** @test */
...@@ -59,7 +59,7 @@ class ManageSettingsTest extends TestCase ...@@ -59,7 +59,7 @@ class ManageSettingsTest extends TestCase
'favicon' => UploadedFile::fake()->image('favicon.jpg', 16, 16), 'favicon' => UploadedFile::fake()->image('favicon.jpg', 16, 16),
]); ]);
Storage::disk('public')->assertExists('img/favicon/' . $this->setting->favicon); Storage::disk('public')->assertExists('img/favicon/'.$this->setting->favicon);
} }
/** @test */ /** @test */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment