Skip to content

Commit

Permalink
Split tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Dec 13, 2024
1 parent 1f96acf commit ada0872
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/CustomValuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ protected function getEnvironmentSetUp($app): void
public function test_model_unguarded()
{
$this->assertTrue(Model::isUnguarded());
}

public function test_model_strict()
{
$this->assertFalse(Model::preventsLazyLoading());
}

Expand Down
5 changes: 4 additions & 1 deletion tests/DefaultValuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ class DefaultValuesTest extends TestCase
public function test_model_unguarded()
{
$this->assertFalse(Model::isUnguarded());
}

public function test_model_strict()
{
if (method_exists(Model::class, 'shouldBeStrict')) {
$this->assertFalse(Model::preventsLazyLoading());
$this->assertTrue(Model::preventsLazyLoading());
}
}

Expand Down

0 comments on commit ada0872

Please sign in to comment.