Skip to content

Commit 3f30502

Browse files
committed
Fix sparse key test
1 parent c773be2 commit 3f30502

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/SchemaTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ public function testSparse()
114114
{
115115
Schema::collection('newcollection', function($collection)
116116
{
117-
$collection->background('backgroundkey');
117+
$collection->sparse('sparsekey');
118118
});
119119

120-
$index = $this->getIndex('newcollection', 'backgroundkey');
121-
$this->assertEquals(1, $index['background']);
120+
$index = $this->getIndex('newcollection', 'sparsekey');
121+
$this->assertEquals(1, $index['sparse']);
122122
}
123123

124124
public function testExpire()

0 commit comments

Comments
 (0)