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]);