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 27, 2024
1 parent a0eb4e1 commit 5374fdb
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 5374fdb

Please sign in to comment.