@@ -41,10 +41,10 @@ public function testEnableConfigCaching(): void
41
41
{
42
42
$ command = new Optimize (service ('logger ' ), service ('commands ' ));
43
43
44
- $ enableCaching = $ this ->getPrivateMethodInvoker ($ command , 'enableCaching ' );
44
+ $ runCaching = $ this ->getPrivateMethodInvoker ($ command , 'runCaching ' );
45
45
46
- // private function enableCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
47
- $ enableCaching (true , null , null );
46
+ // private function runCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
47
+ $ runCaching (true , null , null );
48
48
49
49
// Check if config caching is enabled
50
50
$ this ->assertFileContains ('public bool $configCacheEnabled = true; ' , APPPATH . 'Config/Optimize.php ' );
@@ -54,10 +54,10 @@ public function testEnableLocatorCaching(): void
54
54
{
55
55
$ command = new Optimize (service ('logger ' ), service ('commands ' ));
56
56
57
- $ enableCaching = $ this ->getPrivateMethodInvoker ($ command , 'enableCaching ' );
57
+ $ runCaching = $ this ->getPrivateMethodInvoker ($ command , 'runCaching ' );
58
58
59
- // private function enableCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
60
- $ enableCaching (null , true , null );
59
+ // private function runCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
60
+ $ runCaching (null , true , null );
61
61
62
62
// Check if locator caching is enabled
63
63
$ this ->assertFileContains ('public bool $locatorCacheEnabled = true; ' , APPPATH . 'Config/Optimize.php ' );
@@ -67,10 +67,10 @@ public function testDisableCaching(): void
67
67
{
68
68
$ command = new Optimize (service ('logger ' ), service ('commands ' ));
69
69
70
- $ enableCaching = $ this ->getPrivateMethodInvoker ($ command , 'enableCaching ' );
70
+ $ runCaching = $ this ->getPrivateMethodInvoker ($ command , 'runCaching ' );
71
71
72
- // private function enableCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
73
- $ enableCaching (null , null , true );
72
+ // private function runCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
73
+ $ runCaching (null , null , true );
74
74
75
75
// Check if both caches are disabled
76
76
$ this ->assertFileContains ('public bool $configCacheEnabled = false; ' , APPPATH . 'Config/Optimize.php ' );
@@ -81,10 +81,10 @@ public function testWithoutOptions(): void
81
81
{
82
82
$ command = new Optimize (service ('logger ' ), service ('commands ' ));
83
83
84
- $ enableCaching = $ this ->getPrivateMethodInvoker ($ command , 'enableCaching ' );
84
+ $ runCaching = $ this ->getPrivateMethodInvoker ($ command , 'runCaching ' );
85
85
86
- // private function enableCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
87
- $ enableCaching (null , null , null );
86
+ // private function runCaching (?bool $enableConfigCache, ?bool $enableLocatorCache, ?bool $disable): void
87
+ $ runCaching (null , null , null );
88
88
89
89
// Check if both caches are disabled
90
90
$ this ->assertFileContains ('public bool $configCacheEnabled = true; ' , APPPATH . 'Config/Optimize.php ' );
0 commit comments