File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 77
88trait ResolvesState
99{
10- /**
10+ /**
1111 * Resolve the value of a given state.
1212 *
1313 * @throws \InvalidArgumentException
@@ -22,4 +22,4 @@ private function resolveState(ResourceState|string $state): string
2222
2323 return $ stateString ;
2424 }
25- }
25+ }
Original file line number Diff line number Diff line change 2727 /** @var TestCase $this */
2828 $ cat = Cat::firstOrFail ();
2929
30- expect (fn () => CatResource::state ('non_existent ' )->make ($ cat )->toJson ())
30+ expect (fn () => CatResource::state ('non_existent ' )->make ($ cat )->toJson ())
3131 ->toThrow (InvalidArgumentException::class, 'State "non_existent" is not registered. ' );
32- });
32+ });
Original file line number Diff line number Diff line change 77use Illuminate \Foundation \Testing \RefreshDatabase ;
88use Orchestra \Testbench \Concerns \WithWorkbench ;
99use Orchestra \Testbench \TestCase as Orchestra ;
10- use Workbench \App \Enums \CustomResourceStates ;
1110
1211class TestCase extends Orchestra
1312{
@@ -31,7 +30,7 @@ protected function getEnvironmentSetUp($app)
3130 {
3231 $ app ['config ' ]->set ('stateful-resources.states ' , [
3332 ...Variant::cases (),
34- 'custom '
33+ 'custom ' ,
3534 ]);
3635 }
3736
You can’t perform that action at this time.
0 commit comments