Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Jul 15, 2024
1 parent bb1c385 commit 6fe9b0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/ScoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public function _after()
{
parent::_after();
$section = Craft::$app->getEntries()->getSectionByHandle('news');
Craft::$app->getEntries()->deleteSection($section);
if ($section) {
Craft::$app->getEntries()->deleteSection($section);
}
}

/** @test */
Expand Down

0 comments on commit 6fe9b0d

Please sign in to comment.