Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: limit migration namespace on unit tests #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/database/ExampleDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ final class ExampleDatabaseTest extends CIUnitTestCase
{
use DatabaseTestTrait;

// Execute migrations from all available namespaces
protected $namespace = null;
// Execute migrations from Tests\Support namespaces
protected $namespace = 'Tests\Support';

protected $seed = ExampleSeeder::class;

Expand Down
3 changes: 2 additions & 1 deletion tests/orif/common/Views/AdminMenuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class AdminMenuTest extends CIUnitTestCase
protected $migrate = true;
protected $migrateOnce = false;
protected $refresh = true;
protected $namespace = null;
protected $namespace = 'User';

protected function setUp(): void
{
parent::setUp();
Expand Down
2 changes: 1 addition & 1 deletion tests/orif/user/Controllers/AuthHttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AuthHttpTest extends CIUnitTestCase
protected $migrate = true;
protected $migrateOnce = false;
protected $refresh = true;
protected $namespace = null;
protected $namespace = 'User';

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/orif/user/Models/User_modelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ private static function insertUser($userType, $username, $userEmail, $userPasswo

return $userModel->insert($user);
}
}
}
Loading