Skip to content

Commit

Permalink
Reset $lazyLoadingViolationCallback after test is done
Browse files Browse the repository at this point in the history
It was affecting other tests
  • Loading branch information
rogatty committed Mar 18, 2022
1 parent 14d6cf0 commit d05a2d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Integration/Database/EloquentStrictLoadingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public function testStrictModeWithCustomCallbackOnLazyLoading()
$models = EloquentStrictLoadingTestModel1::get();

$models[0]->modelTwos;

Model::handleLazyLoadingViolationUsing(null);
}

public function testStrictModeWithOverriddenHandlerOnLazyLoading()
Expand Down

0 comments on commit d05a2d0

Please sign in to comment.