예제 #1
0
 /**
  * Destroy the test DB
  */
 public function tearDown()
 {
     parent::tearDown();
     if (!$this->use_database) {
         return;
     }
     $this->pdo->rollBack();
 }
예제 #2
0
 /**
  * Migrate & Seed the test DB
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->use_database) {
         return;
     }
     Artisan::call('zapper:truncate');
     if (!in_array('--no-seed', $_SERVER['argv'])) {
         Artisan::call('db:seed');
     }
 }