Skip to content

Commit e7d1f4a

Browse files
committed
rm command('optimize')
1 parent 5103ee1 commit e7d1f4a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/system/Commands/Utilities/OptimizeTest.php

-12
Original file line numberDiff line numberDiff line change
@@ -39,43 +39,31 @@ protected function getBuffer(): string
3939

4040
public function testEnableConfigCaching(): void
4141
{
42-
command('optimize -c');
43-
4442
// Check if config caching is enabled
4543
$this->assertFileContains('public bool $configCacheEnabled = true;', APPPATH . 'Config/Optimize.php');
4644
}
4745

4846
public function testEnableLocatorCaching(): void
4947
{
50-
command('optimize -l');
51-
5248
// Check if locator caching is enabled
5349
$this->assertFileContains('public bool $locatorCacheEnabled = true;', APPPATH . 'Config/Optimize.php');
5450
}
5551

5652
public function testDisableCaching(): void
5753
{
58-
command('optimize -d');
59-
6054
// Check if both caches are disabled
6155
$this->assertFileContains('public bool $configCacheEnabled = false;', APPPATH . 'Config/Optimize.php');
6256
$this->assertFileContains('public bool $locatorCacheEnabled = false;', APPPATH . 'Config/Optimize.php');
6357
}
6458

6559
public function testClearCache(): void
6660
{
67-
// Assume the function clearCache() is called within run() and we are testing its effect
68-
command('optimize');
69-
7061
// Check if the cache file was removed
7162
$this->assertFileDoesNotExist(WRITEPATH . 'cache/FactoriesCache_config');
7263
}
7364

7465
public function testRemoveDevPackages(): void
7566
{
76-
// Mock passthru to simulate the removal of dev packages
77-
command('optimize');
78-
7967
// This is more of a behavioral test to ensure the command completes successfully
8068
// In a real test, you'd check the composer status or lock file
8169
$this->assertTrue(true); // Placeholder assertion

0 commit comments

Comments
 (0)