Skip to content

Commit b80171e

Browse files
committed
revert changes
1 parent 9a89389 commit b80171e

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

tests/system/Commands/Utilities/OptimizeTest.php

+2-20
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function getBuffer(): string
4040
public function testEnableConfigCaching(): void
4141
{
4242
command('optimize -c');
43-
43+
4444
// Check if config caching is enabled
4545
$this->assertFileContains('public bool $configCacheEnabled = true;', APPPATH . 'Config/Optimize.php');
4646
}
@@ -56,30 +56,12 @@ public function testEnableLocatorCaching(): void
5656
public function testDisableCaching(): void
5757
{
5858
command('optimize -d');
59+
5960
// Check if both caches are disabled
6061
$this->assertFileContains('public bool $configCacheEnabled = false;', APPPATH . 'Config/Optimize.php');
6162
$this->assertFileContains('public bool $locatorCacheEnabled = false;', APPPATH . 'Config/Optimize.php');
6263
}
6364

64-
public function testClearCache(): void
65-
{
66-
// Assume the function clearCache() is called within run() and we are testing its effect
67-
command('optimize');
68-
69-
// Check if the cache file was removed
70-
$this->assertFileDoesNotExist(WRITEPATH . 'cache/FactoriesCache_config');
71-
}
72-
73-
public function testRemoveDevPackages(): void
74-
{
75-
// Mock passthru to simulate the removal of dev packages
76-
command('optimize');
77-
78-
// This is more of a behavioral test to ensure the command completes successfully
79-
// In a real test, you'd check the composer status or lock file
80-
$this->assertTrue(true); // Placeholder assertion
81-
}
82-
8365
protected function assertFileContains(string $needle, string $filePath): void
8466
{
8567
$this->assertFileExists($filePath);

0 commit comments

Comments
 (0)