Skip to content

Commit

Permalink
Merge pull request #3890 from paulbalandan/composer-v2-psr4-autoloading
Browse files Browse the repository at this point in the history
Rename tests to conform with PSR4
  • Loading branch information
samsonasik authored Nov 16, 2020
2 parents 327445e + e3eaceb commit d63020b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/system/Database/BaseQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use CodeIgniter\Test\Mock\MockConnection;

class QueryTest extends \CodeIgniter\Test\CIUnitTestCase
class BaseQueryTest extends \CodeIgniter\Test\CIUnitTestCase
{
protected $db;

Expand Down
2 changes: 1 addition & 1 deletion tests/system/Database/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use CodeIgniter\Database\Config;
use CodeIgniter\Test\ReflectionHelper;

class DatabaseConfig extends \CodeIgniter\Test\CIUnitTestCase
class ConfigTest extends \CodeIgniter\Test\CIUnitTestCase
{
use ReflectionHelper;

Expand Down
12 changes: 9 additions & 3 deletions tests/system/Database/Migrations/MigrationRunnerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?php namespace CodeIgniter\Database;
<?php

namespace CodeIgniter\Database\Migrations;

use CodeIgniter\Database\BaseConnection;
use CodeIgniter\Database\Config;
use CodeIgniter\Database\MigrationRunner;
use CodeIgniter\Events\Events;
use CodeIgniter\Exceptions\ConfigException;
use CodeIgniter\Test\CIDatabaseTestCase;
use Config\Database;
use Config\Migrations;
use Config\Services;
use org\bovigo\vfs\vfsStream;
Expand Down Expand Up @@ -32,7 +38,7 @@ public function setUp(): void

public function testLoadsDefaultDatabaseWhenNoneSpecified()
{
$dbConfig = new \Config\Database();
$dbConfig = new Database();
$runner = new MigrationRunner($this->config);

$db = $this->getPrivateProperty($runner, 'db');
Expand Down Expand Up @@ -246,7 +252,7 @@ public function testMigrationThrowsDisabledException()

public function testVersionReturnsUpDownSuccess()
{
$forge = \Config\Database::forge();
$forge = Database::forge();
$forge->dropTable('foo', true);

$config = $this->config;
Expand Down
5 changes: 4 additions & 1 deletion tests/system/Database/Migrations/MigrationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php namespace CodeIgniter\Database;
<?php

namespace CodeIgniter\Database\Migrations;

use CodeIgniter\Database\Migration;
use CodeIgniter\Test\CIDatabaseTestCase;

class MigrationTest extends CIDatabaseTestCase
Expand Down
File renamed without changes.

0 comments on commit d63020b

Please sign in to comment.