Skip to content

Commit

Permalink
test: remove unneeded $this->resetFactories()
Browse files Browse the repository at this point in the history
It is called in CIUnitTestCase::setUp() via $setUpMethods.
  • Loading branch information
kenjis committed Jan 4, 2022
1 parent 05dff58 commit c7aa8ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tests/system/CommonFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ public function testIsCli()
public function testDWithCSP()
{
$this->resetServices();
$this->resetFactories();

/** @var App $config */
$config = config('App');
Expand All @@ -543,7 +542,6 @@ public function testDWithCSP()
public function testTraceWithCSP()
{
$this->resetServices();
$this->resetFactories();

/** @var App $config */
$config = config('App');
Expand All @@ -557,7 +555,6 @@ public function testTraceWithCSP()
public function testCspStyleNonce()
{
$this->resetServices();
$this->resetFactories();

$config = config('App');
$config->CSPEnabled = true;
Expand All @@ -568,7 +565,6 @@ public function testCspStyleNonce()
public function testCspScriptNonce()
{
$this->resetServices();
$this->resetFactories();

$config = config('App');
$config->CSPEnabled = true;
Expand Down
1 change: 0 additions & 1 deletion tests/system/HTTP/ContentSecurityPolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ final class ContentSecurityPolicyTest extends CIUnitTestCase
protected function prepare(bool $CSPEnabled = true)
{
$this->resetServices();
$this->resetFactories();

$config = config('App');
$config->CSPEnabled = $CSPEnabled;
Expand Down

0 comments on commit c7aa8ce

Please sign in to comment.