Skip to content

Commit

Permalink
Ad-Hoc: Add extra tests for configuration defaults
Browse files Browse the repository at this point in the history
These extra tests may help in the future to catch unintended behavior changes for the default of these 2 specific settings.
  • Loading branch information
agustingomes committed Aug 28, 2024
1 parent 9cd072d commit ce0b654
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Configuration/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,18 @@ public function testMigrationOrganizationCanBeReset(): void
self::assertFalse($config->areMigrationsOrganizedByYearAndMonth());
self::assertFalse($config->areMigrationsOrganizedByYear());
}

public function testTransactionalConfigDefaultOption(): void
{
$config = new Configuration();

self::assertTrue($config->isTransactional());
}

public function testAllOrNothingConfigDefaultOption(): void
{
$config = new Configuration();

self::assertFalse($config->isAllOrNothing());
}
}

0 comments on commit ce0b654

Please sign in to comment.