Exemplo n.º 1
0
 public function tearDown()
 {
     $this->beforeApplicationDestroyed(function () {
         DB::disconnect();
     });
     parent::tearDown();
 }
Exemplo n.º 2
0
 public function tearDown()
 {
     // Uninstall Dashboard
     $this->artisan('dashboard:uninstall');
     // Run parent class tear down method.
     parent::tearDown();
 }
Exemplo n.º 3
0
 public function tearDown()
 {
     if ($container = Mockery::getContainer()) {
         $this->addToAssertionCount($container->mockery_getExpectationCount());
     }
     parent::tearDown();
 }
Exemplo n.º 4
0
 public function tearDown()
 {
     parent::tearDown();
     $this->refreshApplication();
     Storage::deleteDirectory('testing/ahk');
     Storage::deleteDirectory('testing/cms');
     Storage::deleteDirectory('testing/img');
 }
Exemplo n.º 5
0
 /**
  * @return void
  */
 public function tearDown()
 {
     DB::disconnect();
     m::close();
     $this->tearDownModels();
     $this->app->reset();
     $this->app = null;
     parent::tearDown();
 }
Exemplo n.º 6
0
 /**
  * @return void
  */
 public function tearDown()
 {
     if (!self::$migrationFailed) {
         DB::disconnect();
         m::close();
         $this->tearDownModels();
         $this->app->reset();
         $this->app = null;
     }
     parent::tearDown();
 }
Exemplo n.º 7
0
 public function tearDown()
 {
     $col = 'Tables_in_' . getenv('DB_DATABASE');
     DB::statement("SET FOREIGN_KEY_CHECKS=0");
     foreach (DB::select("SHOW TABLES") as $table) {
         $tableName = $table->{$col};
         DB::statement("DROP TABLE IF EXISTS `{$tableName}`");
         //DB::statement("TRUNCATE `$tableName`");
     }
     DB::statement("SET FOREIGN_KEY_CHECKS=1");
     //DB::rollBack();
     parent::tearDown();
 }
Exemplo n.º 8
0
 public function tearDown()
 {
     parent::tearDown();
     \Mockery::close();
 }
 public function tearDown()
 {
     echo ' ' . count(\DB::getQueryLog()) . ' queries in ' . array_sum(array_column(\DB::getQueryLog(), 'time')) / 1000 . ' seconds';
     //var_dump( \DB::getQueryLog() );
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->dropTables();
     parent::tearDown();
 }
Exemplo n.º 11
0
 public function tearDown()
 {
     $this->rollback();
     parent::tearDown();
 }
Exemplo n.º 12
0
 public function tearDown()
 {
     \DB::disconnect();
     parent::tearDown();
 }
Exemplo n.º 13
0
 public function tearDown()
 {
     parent::tearDown();
     //DB::rollBack();
 }
Exemplo n.º 14
0
 protected function tearDown()
 {
     parent::tearDown();
     Mockery::close();
 }