summaryrefslogtreecommitdiff
path: root/tests/Unit/Database
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Database')
-rw-r--r--tests/Unit/Database/DatabaseServiceProviderTest.php4
-rw-r--r--tests/Unit/Database/DatabaseTest.php5
-rw-r--r--tests/Unit/Database/DbTest.php5
-rw-r--r--tests/Unit/Database/Migration/MigrateTest.php8
4 files changed, 12 insertions, 10 deletions
diff --git a/tests/Unit/Database/DatabaseServiceProviderTest.php b/tests/Unit/Database/DatabaseServiceProviderTest.php
index c9c6f9e3..c3e4c5d0 100644
--- a/tests/Unit/Database/DatabaseServiceProviderTest.php
+++ b/tests/Unit/Database/DatabaseServiceProviderTest.php
@@ -30,7 +30,7 @@ class DatabaseServiceProviderTest extends ServiceProviderTest
list($app, $dbManager, $pdo, $database, $connection) = $this->prepare(
[
'driver' => 'sqlite',
- 'database' => ':memory:'
+ 'database' => ':memory:',
]
);
@@ -51,8 +51,8 @@ class DatabaseServiceProviderTest extends ServiceProviderTest
}
/**
- * @covers \Engelsystem\Database\DatabaseServiceProvider::register()
* @covers \Engelsystem\Database\DatabaseServiceProvider::exitOnError()
+ * @covers \Engelsystem\Database\DatabaseServiceProvider::register()
*/
public function testRegisterError()
{
diff --git a/tests/Unit/Database/DatabaseTest.php b/tests/Unit/Database/DatabaseTest.php
index 7aef51c3..c1f1a717 100644
--- a/tests/Unit/Database/DatabaseTest.php
+++ b/tests/Unit/Database/DatabaseTest.php
@@ -16,8 +16,8 @@ class DatabaseTest extends TestCase
/**
* @covers \Engelsystem\Database\Database::__construct()
- * @covers \Engelsystem\Database\Database::getPdo()
* @covers \Engelsystem\Database\Database::getConnection()
+ * @covers \Engelsystem\Database\Database::getPdo()
*/
public function testInit()
{
@@ -129,7 +129,8 @@ class DatabaseTest extends TestCase
id INT PRIMARY KEY NOT NULL,
data TEXT NOT NULL
);
- ');
+ '
+ );
$connection->statement('CREATE UNIQUE INDEX test_data_id_uindex ON test_data (id);');
$connection->insert("
INSERT INTO test_data (id, data)
diff --git a/tests/Unit/Database/DbTest.php b/tests/Unit/Database/DbTest.php
index a408f78f..09930c4f 100644
--- a/tests/Unit/Database/DbTest.php
+++ b/tests/Unit/Database/DbTest.php
@@ -12,8 +12,8 @@ use PHPUnit\Framework\TestCase;
class DbTest extends TestCase
{
/**
- * @covers \Engelsystem\Database\Db::setDbManager()
* @covers \Engelsystem\Database\Db::connection()
+ * @covers \Engelsystem\Database\Db::setDbManager()
*/
public function testSetDbManager()
{
@@ -132,7 +132,8 @@ class DbTest extends TestCase
id INT PRIMARY KEY NOT NULL,
data TEXT NOT NULL
);
- ');
+ '
+ );
Db::connection()->statement('CREATE UNIQUE INDEX test_data_id_uindex ON test_data (id);');
Db::insert("
INSERT INTO test_data (id, data)
diff --git a/tests/Unit/Database/Migration/MigrateTest.php b/tests/Unit/Database/Migration/MigrateTest.php
index 6dffbe2f..b1954fab 100644
--- a/tests/Unit/Database/Migration/MigrateTest.php
+++ b/tests/Unit/Database/Migration/MigrateTest.php
@@ -15,8 +15,8 @@ class MigrateTest extends TestCase
{
/**
* @covers \Engelsystem\Database\Migration\Migrate::__construct
- * @covers \Engelsystem\Database\Migration\Migrate::run
* @covers \Engelsystem\Database\Migration\Migrate::getMigrations
+ * @covers \Engelsystem\Database\Migration\Migrate::run
* @covers \Engelsystem\Database\Migration\Migrate::setOutput
*/
public function testRun()
@@ -112,11 +112,11 @@ class MigrateTest extends TestCase
/**
* @covers \Engelsystem\Database\Migration\Migrate::getMigrated
- * @covers \Engelsystem\Database\Migration\Migrate::migrate
- * @covers \Engelsystem\Database\Migration\Migrate::setMigrated
* @covers \Engelsystem\Database\Migration\Migrate::getMigrationFiles
- * @covers \Engelsystem\Database\Migration\Migrate::initMigration
* @covers \Engelsystem\Database\Migration\Migrate::getTableQuery
+ * @covers \Engelsystem\Database\Migration\Migrate::initMigration
+ * @covers \Engelsystem\Database\Migration\Migrate::migrate
+ * @covers \Engelsystem\Database\Migration\Migrate::setMigrated
*/
public function testRunIntegration()
{