File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313 <env name =" MAIL_DRIVER" value =" array" />
1414 <env name =" DB_CONNECTION" value =" sqlite" />
1515 <env name =" DB_DATABASE" value =" :memory:" />
16+ <env name =" EYRIS_TEST_SUITE" value =" true" />
1617 </php >
1718</phpunit >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Agent
2424
2525 public function __construct ()
2626 {
27- $ this ->supportsAddonSettings = app ()-> environment ( ' testing ' ) ? true : substr (Statamic::version (), 0 , 1 ) >= 6 ;
27+ $ this ->supportsAddonSettings = env ( ' EYRIS_TEST_SUITE ' ) ? true : substr (Statamic::version (), 0 , 1 ) >= 6 ;
2828 }
2929
3030 private function client ()
@@ -78,7 +78,8 @@ public function saveSettings(Collection $settings): void
7878 }
7979
8080 File::ensureDirectoryExists (resource_path ('addons ' ));
81- File::put (resource_path ('addons/statamic-eyris.yaml ' ), json_encode ($ settings ->all ()));
81+
82+ File::put (resource_path ('addons/statamic-eyris.yaml ' ), YAML ::dump ($ settings ->all ()));
8283 }
8384
8485 public function settings (): Collection
You can’t perform that action at this time.
0 commit comments