We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5cba0a commit 3f981dfCopy full SHA for 3f981df
tests/SchemaTest.php
@@ -14,6 +14,18 @@ public function testCreate()
14
$this->assertTrue(Schema::hasTable('newcollection'));
15
}
16
17
+ public function testCreateWithCallback()
18
+ {
19
+ $instance = $this;
20
+
21
+ Schema::create('newcollection', function($collection) use ($instance)
22
23
+ $instance->assertInstanceOf('Jenssegers\Mongodb\Schema\Blueprint', $collection);
24
+ });
25
26
+ $this->assertTrue(Schema::hasCollection('newcollection'));
27
+ }
28
29
public function testDrop()
30
{
31
Schema::create('newcollection');
0 commit comments