Style CI fixes and remove assertDatabaseCount

This commit is contained in:
Norris Oduro
2020-11-03 14:03:13 +00:00
parent 6ba97cafa8
commit 6460326b1a
2 changed files with 2 additions and 4 deletions

View File

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