Commit 3f30502c authored by Jens Segers's avatar Jens Segers

Fix sparse key test

parent c773be2f
...@@ -114,11 +114,11 @@ class SchemaTest extends TestCase { ...@@ -114,11 +114,11 @@ class SchemaTest extends TestCase {
{ {
Schema::collection('newcollection', function($collection) Schema::collection('newcollection', function($collection)
{ {
$collection->background('backgroundkey'); $collection->sparse('sparsekey');
}); });
$index = $this->getIndex('newcollection', 'backgroundkey'); $index = $this->getIndex('newcollection', 'sparsekey');
$this->assertEquals(1, $index['background']); $this->assertEquals(1, $index['sparse']);
} }
public function testExpire() public function testExpire()
......
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