From 06d4671b1d6503e4a05615a4bf472f1e7094b9df Mon Sep 17 00:00:00 2001 From: ryangjchandler Date: Wed, 30 Jun 2021 12:24:05 +0000 Subject: [PATCH] Fix styling --- tests/CacheTest.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/CacheTest.php b/tests/CacheTest.php index 457b2b7..8ccdcb3 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -3,11 +3,9 @@ namespace RyanChandler\BladeCacheDirective\Tests; use Artisan; -use Illuminate\Support\Facades\Cache; class CacheTest extends TestCase { - protected $first_value; protected $second_value; protected $third_value; @@ -24,21 +22,21 @@ public function setUp(): void /** @test */ public function the_cache_directive_will_render_the_same_view_before_ttl_expired() { - $time = $this->first_value; + $time = $this->first_value; $this->assertEquals($this->first_value->format('Y-m-d H:i:s'), $this->renderView('cache', compact('time'))); - $time = $this->second_value; + $time = $this->second_value; $this->assertEquals($this->first_value->format('Y-m-d H:i:s'), $this->renderView('cache', compact('time'))); } /** @test */ public function the_cache_directive_will_render_other_view_after_ttl_expired() { - $time = $this->first_value; + $time = $this->first_value; $this->assertEquals($this->first_value->format('Y-m-d H:i:s'), $this->renderView('cache', compact('time'))); sleep(2); - $time = $this->second_value; + $time = $this->second_value; $this->assertNotEquals($this->first_value, $this->second_value); $this->assertEquals($this->second_value->format('Y-m-d H:i:s'), $this->renderView('cache', compact('time'))); } @@ -47,7 +45,7 @@ protected function renderView($view, $parameters) { Artisan::call('view:clear'); - if(is_string($view)) { + if (is_string($view)) { $view = view($view)->with($parameters); }