diff --git a/tests/AutomaticModeTest.php b/tests/AutomaticModeTest.php index 6bd5709b..7b5d5ded 100644 --- a/tests/AutomaticModeTest.php +++ b/tests/AutomaticModeTest.php @@ -89,6 +89,7 @@ test('central helper doesnt change tenancy state when called in central context' expect(tenant())->toBeNull(); }); +// todo@tests function contextIsSwitchedWhenTenancyInitialized() { config(['tenancy.bootstrappers' => [ diff --git a/tests/BootstrapperTest.php b/tests/BootstrapperTest.php index 07c66647..929c4e47 100644 --- a/tests/BootstrapperTest.php +++ b/tests/BootstrapperTest.php @@ -182,7 +182,6 @@ test('filesystem data is separated', function () { expect($new_storage_path)->toEqual($expected_storage_path); }); -// Helpers function getDiskPrefix(string $disk): string { /** @var FilesystemAdapter $disk */ diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index ac4451fb..8ad67538 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -179,6 +179,7 @@ test('run command with array of tenants works', function () { ->expectsOutput('Tenant: ' . $tenantId2); }); +// todo@tests function runCommandWorks(): void { $id = Tenant::create()->getTenantKey(); @@ -191,6 +192,7 @@ function runCommandWorks(): void ->expectsOutput('xyz'); } +// todo@tests function databaseConnectionSwitchedToDefault() { $originalDBName = DB::connection()->getDatabaseName(); diff --git a/tests/ResourceSyncingTest.php b/tests/ResourceSyncingTest.php index fce59bf6..bc068d52 100644 --- a/tests/ResourceSyncingTest.php +++ b/tests/ResourceSyncingTest.php @@ -502,6 +502,7 @@ test('an event is fired for all touched resources', function () { }); }); +// todo@tests function creatingResourceInTenantDatabaseCreatesAndMapInCentralDatabase() { // Assert no user in central DB diff --git a/tests/SingleDatabaseTenancyTest.php b/tests/SingleDatabaseTenancyTest.php index 76e6b22f..be0afa91 100644 --- a/tests/SingleDatabaseTenancyTest.php +++ b/tests/SingleDatabaseTenancyTest.php @@ -227,6 +227,7 @@ test('the model returned by the tenant helper has unique and exists validation r expect($existsFails)->toBeFalse(); }); +// todo@tests function primaryModelsScopedToCurrentTenant() { // acme context @@ -273,6 +274,7 @@ function primaryModelsScopedToCurrentTenant() expect(Post::count())->toBe(1); } +// todo@tests function secondaryModelsAreScopedToCurrentTenant() { // acme context diff --git a/tests/TenantDatabaseManagerTest.php b/tests/TenantDatabaseManagerTest.php index b7687eca..5a470972 100644 --- a/tests/TenantDatabaseManagerTest.php +++ b/tests/TenantDatabaseManagerTest.php @@ -238,7 +238,6 @@ dataset('database_manager_provider', [ ['sqlsrv', MicrosoftSQLDatabaseManager::class] ]); -// Helpers function createUsersTable() { Schema::create('users', function (Blueprint $table) {