/** * Destroy the test DB */ public function tearDown() { parent::tearDown(); if (!$this->use_database) { return; } $this->pdo->rollBack(); }
/** * 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'); } }