Skip to content

Commit

Permalink
test: fix out-of-dated test code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 29, 2023
1 parent afbd366 commit dfa206f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/system/Cache/FactoriesCacheFileVarExportHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use CodeIgniter\Config\Factories;
use CodeIgniter\Test\CIUnitTestCase;
use Config\App;
use Config\Modules;

/**
* @internal
Expand Down Expand Up @@ -55,10 +56,10 @@ public function testSave()

$cachedData = $this->handler->get('FactoriesCache_config');

$this->assertArrayHasKey('basenames', $cachedData);
$this->assertArrayHasKey('aliases', $cachedData);
$this->assertArrayHasKey('instances', $cachedData);
$this->assertArrayHasKey('Modules', $cachedData['basenames']);
$this->assertArrayHasKey('App', $cachedData['basenames']);
$this->assertArrayHasKey(Modules::class, $cachedData['aliases']);
$this->assertArrayHasKey('App', $cachedData['aliases']);
}

public function testLoad()
Expand Down

0 comments on commit dfa206f

Please sign in to comment.