diff --git a/tests/Feature/UUID/NoNumericIdInResponseTest.php b/tests/Feature/UUID/NoNumericIdInResponseTest.php new file mode 100644 index 0000000..bd28774 --- /dev/null +++ b/tests/Feature/UUID/NoNumericIdInResponseTest.php @@ -0,0 +1,25 @@ +create(); + $response = actingAs($user)->getJson('/api/v1/me')->assertOk(); + $json = $response->json(); + + $collectKeys = function (array $arr) use (&$collectKeys): array { + $keys = array_keys($arr); + foreach ($arr as $v) { + if (is_array($v)) { + $keys = array_merge($keys, $collectKeys($v)); + } + } + return $keys; + }; + + expect($collectKeys($json))->not->toContain('id'); + expect($json)->toHaveKey('uuid'); +}); diff --git a/tests/Feature/Wire/WireModalDeleteTest.php b/tests/Feature/Wire/WireModalDeleteTest.php new file mode 100644 index 0000000..e63555c --- /dev/null +++ b/tests/Feature/Wire/WireModalDeleteTest.php @@ -0,0 +1,7 @@ +markTestSkipped('No DeleteComponent implemented yet — pattern documented here'); +});