Skip to content

Commit 000c115

Browse files
committed
test: make Event simulate false in FeatureTestTraitTest tearDown()
In setUp() Event simulate is set to true, so it should be restored in tearDown().
1 parent 2c331f5 commit 000c115

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/system/Test/FeatureTestTraitTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace CodeIgniter\Test;
1313

14+
use CodeIgniter\Events\Events;
1415
use CodeIgniter\Exceptions\PageNotFoundException;
1516
use CodeIgniter\HTTP\Response;
1617
use Config\Services;
@@ -35,6 +36,8 @@ protected function tearDown(): void
3536
{
3637
parent::tearDown();
3738

39+
Events::simulate(false);
40+
3841
$this->resetServices();
3942
}
4043

0 commit comments

Comments
 (0)