From 6460326b1a9e6ec02c3e1c268c7327b4c12aebf8 Mon Sep 17 00:00:00 2001 From: Norris Oduro Date: Tue, 3 Nov 2020 14:03:13 +0000 Subject: [PATCH] Style CI fixes and remove assertDatabaseCount --- src/Cart.php | 2 +- tests/CartTest.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Cart.php b/src/Cart.php index 4b1eb8a..a5c0965 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -98,7 +98,7 @@ class Cart $instance = $instance->getInstanceIdentifier(); } - $this->instance = 'cart.' . $instance; + $this->instance = 'cart.'.$instance; return $this; } diff --git a/tests/CartTest.php b/tests/CartTest.php index c2a0bd4..ea6b2ef 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -65,7 +65,7 @@ class CartTest extends TestCase parent::setUp(); $this->app->afterResolving('migrator', function ($migrator) { - $migrator->path(realpath(__DIR__ . '/../src/Database/migrations')); + $migrator->path(realpath(__DIR__.'/../src/Database/migrations')); }); } @@ -1477,8 +1477,6 @@ class CartTest extends TestCase $newInstance->store($newIdentifier = 456); $newInstanceSerialized = serialize($newInstance->content()); - $this->assertDatabaseCount('shoppingcart', 2); - $this->assertDatabaseHas('shoppingcart', ['identifier' => $identifier, 'instance' => 'default', 'content' => $serialized]); $this->assertDatabaseHas('shoppingcart', ['identifier' => $newIdentifier, 'instance' => $instanceName, 'content' => $newInstanceSerialized]);