Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hadihallak committed Feb 7, 2024
1 parent d315754 commit 9a46960
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions tests/WorkOS/UserManagementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,19 +876,21 @@ private function invitationListResponseFixture()
{
return json_encode(
[
"data" => [[
"object" => "invitation",
"id" => "invitation_01E4ZCR3C56J083X43JQXF3JK5",
"email" => "someemail@test.com",
"state" => "pending",
"accepted_at" => "2021-07-01T19:07:33.155Z",
"revoked_at" => "2021-07-01T19:07:33.155Z",
"expires_at" => "2021-07-01T19:07:33.155Z",
"token" => "Z1uX3RbwcIl5fIGJJJCXXisdI",
"organization_id" => "org_01EHQMYV6MBK39QC5PZXHY59C3",
"created_at" => "2021-07-01T19:07:33.155Z",
"updated_at" => "2021-07-01T19:07:33.155Z",
]],
"data" => [
[
"object" => "invitation",
"id" => "invitation_01E4ZCR3C56J083X43JQXF3JK5",
"email" => "someemail@test.com",
"state" => "pending",
"accepted_at" => "2021-07-01T19:07:33.155Z",
"revoked_at" => "2021-07-01T19:07:33.155Z",
"expires_at" => "2021-07-01T19:07:33.155Z",
"token" => "Z1uX3RbwcIl5fIGJJJCXXisdI",
"organization_id" => "org_01EHQMYV6MBK39QC5PZXHY59C3",
"created_at" => "2021-07-01T19:07:33.155Z",
"updated_at" => "2021-07-01T19:07:33.155Z",
]
],
"list_metadata" => [
"before" => null,
"after" => null
Expand All @@ -913,14 +915,16 @@ private function organizationMembershipListResponseFixture()
{
return json_encode(
[
"data" => [[
"object" => "organization_membership",
"id" => "om_01E4ZCR3C56J083X43JQXF3JK5",
"user_id" => "user_01H7X1M4TZJN5N4HG4XXMA1234",
"organization_id" => "org_01EHQMYV6MBK39QC5PZXHY59C3",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z",
]],
"data" => [
[
"object" => "organization_membership",
"id" => "om_01E4ZCR3C56J083X43JQXF3JK5",
"user_id" => "user_01H7X1M4TZJN5N4HG4XXMA1234",
"organization_id" => "org_01EHQMYV6MBK39QC5PZXHY59C3",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z",
]
],
"list_metadata" => [
"before" => null,
"after" => null
Expand Down Expand Up @@ -1071,7 +1075,7 @@ private function listUsersResponseFixture()
"email" => "test@test.com",
"first_name" => "Damien",
"last_name" => "Alabaster",
"profile_picture_url" => "https://example.com/photo.jpg",
"profile_picture_url" => "https://example.com/photo.jpg",
"email_verified" => true,
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
Expand Down Expand Up @@ -1101,7 +1105,7 @@ private function userFixture()
"firstName" => "Damien",
"lastName" => "Alabaster",
"emailVerified" => true,
"profile_picture_url" => "https://example.com/photo.jpg",
"profilePictureUrl" => "https://example.com/photo.jpg",
"createdAt" => "2021-06-25T19:07:33.155Z",
"updatedAt" => "2021-06-25T19:07:33.155Z"
];
Expand Down

0 comments on commit 9a46960

Please sign in to comment.