示例#1
0
 /**
  * Set up test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $schema = new SchemaBuilder();
     $this->registrar = new TypeRegistrar();
     $this->registrar->setSchema($schema);
 }
 /**
  * Set up test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $schema = new SchemaBuilder();
     $this->registrar = new ConnectionRegistrar();
     $this->edgeRegistrar = new EdgeRegistrar();
     $this->typeRegistrar = new TypeRegistrar();
     $schema->setConnectionRegistrar($this->registrar);
     $schema->setEdgeRegistrar($this->edgeRegistrar);
     $schema->setTypeRegistrar($this->typeRegistrar);
     $this->registrar->setSchema($schema);
     $this->typeRegistrar->setSchema($schema);
     $this->edgeRegistrar->setSchema($schema);
 }
示例#3
0
 /**
  * Set up the test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $this->artisan('migrate', ['--database' => 'testing', '--realpath' => realpath(__DIR__ . '/Support/migrations')]);
 }