From 15793496e8d56769c792cf39673c6e6dea3ec4d9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 28 Jun 2018 21:15:57 +0200 Subject: Preparing for complete rewrite.. --- main/app/tests/DatabaseTransactions.php | 48 --------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 main/app/tests/DatabaseTransactions.php (limited to 'main/app/tests/DatabaseTransactions.php') diff --git a/main/app/tests/DatabaseTransactions.php b/main/app/tests/DatabaseTransactions.php deleted file mode 100644 index 2155c6a..0000000 --- a/main/app/tests/DatabaseTransactions.php +++ /dev/null @@ -1,48 +0,0 @@ -ci['db']; - - foreach ($this->connectionsToTransact() as $name) { - $database->connection($name)->beginTransaction(); - } - - $this->beforeApplicationDestroyed(function () use ($database) { - foreach ($this->connectionsToTransact() as $name) { - $database->connection($name)->rollBack(); - } - }); - } - - /** - * The database connections that should have transactions. - * - * @return array - */ - protected function connectionsToTransact() - { - return property_exists($this, 'connectionsToTransact') - ? $this->connectionsToTransact : [null]; - } -} \ No newline at end of file -- cgit v1.2.3