Skip to content

Commit 3106970

Browse files
committed
test: refactor tests
1 parent b306fbc commit 3106970

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/system/CommonFunctionsTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class CommonFunctionsTest extends CIUnitTestCase
5050
protected function setUp(): void
5151
{
5252
unset($_ENV['foo'], $_SERVER['foo']);
53-
Services::reset();
53+
$this->resetServices();
5454

5555
parent::setUp();
5656
}
@@ -593,8 +593,6 @@ public function testTraceWithCSP()
593593

594594
public function testCspStyleNonce()
595595
{
596-
$this->resetServices();
597-
598596
$config = config('App');
599597
$config->CSPEnabled = true;
600598

@@ -603,8 +601,6 @@ public function testCspStyleNonce()
603601

604602
public function testCspScriptNonce()
605603
{
606-
$this->resetServices();
607-
608604
$config = config('App');
609605
$config->CSPEnabled = true;
610606

0 commit comments

Comments
 (0)