We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f18d3 commit c0ca45dCopy full SHA for c0ca45d
1 file changed
tests/Commands/ClearSettingsTest.php
@@ -180,16 +180,16 @@ public function testActuallyFlushesSettings(): void
180
PhpStreamWrapper::register();
181
PhpStreamWrapper::setContent("y\n");
182
183
+ // Configure handler before getting service
184
+ $config = config('Settings');
185
+ $config->handlers = ['array'];
186
+
187
// Set some settings
188
$settings = service('settings');
189
$settings->set('Example.siteName', 'Test');
190
191
$this->assertSame('Test', $settings->get('Example.siteName'));
192
- // Run clear command
- $config = config('Settings');
- $config->handlers = ['array'];
-
193
command('settings:clear');
194
195
PhpStreamWrapper::restore();
0 commit comments