1414 config (['ozu-client.website_key ' => 'test ' ]);
1515 Http::fake ();
1616
17- Schema::swap (new class {
17+ Schema::swap (new class
18+ {
1819 public function getColumnListing ($ table ): array
1920 {
2021 return ['dummy-text ' , 'dummy-check ' , 'dummy-image ' , 'dummy-date ' , 'dummy-select ' ];
2122 }
23+
2224 public function getColumnType ($ table , $ column ): string
2325 {
24- return match ($ column ) {
26+ return match ($ column ) {
2527 'dummy-check ' => 'tinyint ' ,
2628 'dummy-date ' => 'date ' ,
2729 default => 'string ' ,
@@ -48,7 +50,7 @@ public function ozuCollectionKey(): string
4850 },
4951 ]]);
5052
51- $ this ->artisan ('ozu:configure-cms ' )
53+ $ this ->artisan ('ozu:configure ' )
5254 ->expectsOutput ('CMS configuration sent to Ozu. ' )
5355 ->assertExitCode (Command::SUCCESS );
5456
@@ -93,7 +95,7 @@ public static function configureOzuCollection(OzuCollectionConfig $config): OzuC
9395 },
9496 ]]);
9597
96- $ this ->artisan ('ozu:configure-cms ' )
98+ $ this ->artisan ('ozu:configure ' )
9799 ->expectsOutput ('CMS configuration sent to Ozu. ' )
98100 ->assertExitCode (Command::SUCCESS );
99101
@@ -136,7 +138,7 @@ public static function configureOzuCollectionList(OzuCollectionListConfig $confi
136138 },
137139 ]]);
138140
139- $ this ->artisan ('ozu:configure-cms ' )
141+ $ this ->artisan ('ozu:configure ' )
140142 ->expectsOutput ('CMS configuration sent to Ozu. ' )
141143 ->assertExitCode (Command::SUCCESS );
142144
@@ -207,7 +209,7 @@ public static function configureOzuCollectionForm(OzuCollectionFormConfig $confi
207209 },
208210 ]]);
209211
210- $ this ->artisan ('ozu:configure-cms ' )
212+ $ this ->artisan ('ozu:configure ' )
211213 ->expectsOutput ('CMS configuration sent to Ozu. ' )
212214 ->assertExitCode (Command::SUCCESS );
213215
@@ -241,11 +243,13 @@ public static function configureOzuCollectionForm(OzuCollectionFormConfig $confi
241243});
242244
243245it ('sends custom fields configuration to Ozu ' , function () {
244- Schema::swap (new class {
246+ Schema::swap (new class
247+ {
245248 public function getColumnListing ($ table ): array
246249 {
247250 return ['dummy-text ' ];
248251 }
252+
249253 public function getColumnType ($ table , $ column ): string
250254 {
251255 return 'string ' ;
@@ -262,7 +266,7 @@ public function ozuCollectionKey(): string
262266 },
263267 ]]);
264268
265- $ this ->artisan ('ozu:configure-cms ' )
269+ $ this ->artisan ('ozu:configure ' )
266270 ->expectsOutput ('CMS configuration sent to Ozu. ' )
267271 ->assertExitCode (Command::SUCCESS );
268272
@@ -290,7 +294,7 @@ public function ozuCollectionKey(): string
290294 },
291295 ]]);
292296
293- $ this ->artisan ('ozu:configure-cms ' )
297+ $ this ->artisan ('ozu:configure ' )
294298 ->expectsOutput ('CMS configuration sent to Ozu. ' )
295299 ->assertExitCode (Command::SUCCESS );
296300
@@ -329,7 +333,7 @@ public static function configureOzuCollection(OzuCollectionConfig $config): OzuC
329333
330334 config (['ozu-client.collections ' => [$ parentCollectionClass ]]);
331335
332- $ this ->artisan ('ozu:configure-cms ' )
336+ $ this ->artisan ('ozu:configure ' )
333337 ->expectsOutput ('CMS configuration sent to Ozu. ' )
334338 ->assertExitCode (Command::SUCCESS );
335339
@@ -370,10 +374,10 @@ public static function configureOzuCollectionList(OzuCollectionListConfig $confi
370374 ->addColumn (OzuColumn::makeText ('dummy-text ' ))
371375 ->addColumn (OzuColumn::makeCheck ('dummy-another-check ' ));
372376 }
373- }
377+ },
374378 ]]);
375379
376- $ this ->artisan ('ozu:configure-cms ' )
380+ $ this ->artisan ('ozu:configure ' )
377381 ->expectsOutputToContain ('The keys [dummy-another-check] are defined either in the list or in the form but are not custom fields of the model ' )
378382 ->assertExitCode (Command::SUCCESS );
379383});
@@ -394,10 +398,10 @@ public static function configureOzuCollectionForm(OzuCollectionFormConfig $confi
394398 OzuField::makeText ('dummy-another-text ' )
395399 );
396400 }
397- }
401+ },
398402 ]]);
399403
400- $ this ->artisan ('ozu:configure-cms ' )
404+ $ this ->artisan ('ozu:configure ' )
401405 ->expectsOutputToContain ('The keys [dummy-another-text] are defined either in the list or in the form but are not custom fields of the model ' )
402406 ->assertExitCode (Command::SUCCESS );
403407});
0 commit comments