From 350ed0677be6752f53abf99eac38a3522de49b3c Mon Sep 17 00:00:00 2001 From: Bajram Emini Date: Wed, 8 Jan 2025 01:04:59 +0100 Subject: [PATCH] WIP --- .../PagesWithoutTeamsTest.php | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) rename tests/{Feature => FeatureWithDatabaseMigrations}/PagesWithoutTeamsTest.php (83%) diff --git a/tests/Feature/PagesWithoutTeamsTest.php b/tests/FeatureWithDatabaseMigrations/PagesWithoutTeamsTest.php similarity index 83% rename from tests/Feature/PagesWithoutTeamsTest.php rename to tests/FeatureWithDatabaseMigrations/PagesWithoutTeamsTest.php index e290b1e2..153a9705 100644 --- a/tests/Feature/PagesWithoutTeamsTest.php +++ b/tests/FeatureWithDatabaseMigrations/PagesWithoutTeamsTest.php @@ -1,28 +1,38 @@ markTestSkipped('Skipped for now'); + // Set teams to false for this test + config(['aura.teams' => false]); + + // Drop all tables and run our migration + Schema::dropAllTables(); + $migration = require __DIR__.'/../../database/migrations/create_aura_tables.php.stub'; + $migration->up(); + $this->actingAs($this->user = createSuperAdminWithoutTeam()); Aura::fake(); Aura::setModel(new Post); }); +afterEach(function () { + // Restore original config value + config(['aura.teams' => true]); +}); + test('Aura without teams - pages', function () { $this->withoutExceptionHandling();