Skip to content

Commit

Permalink
fix: was passing string values when I should've been passing Author objs
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesshop committed Jul 4, 2024
1 parent bbfc79a commit 312d519
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions tests/Integration/CoAuthorsPlusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ public function test_append_post_author_who_has_not_been_linked() {
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author2->user_login,
$this->author3->user_login,
$this->author2,
$this->author3,
]
);
}
Expand Down Expand Up @@ -988,9 +988,9 @@ public function test_assign_post_authors_from_authors_who_have_not_been_linked()
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author3->user_login,
$this->editor1->user_login,
$this->author2->user_login,
$this->author3,
$this->editor1,
$this->author2,
]
);
}
Expand Down Expand Up @@ -1150,9 +1150,9 @@ public function test_append_post_authors_from_coauthors_who_have_not_been_linked
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author1->user_login,
$guest_author_1->user_login,
$guest_author_2->user_login,
$this->author1,
$guest_author_1,
$guest_author_2,
]
);
}
Expand Down Expand Up @@ -1217,8 +1217,8 @@ public function test_assign_coauthors_from_coauthors_and_user_who_have_not_been_
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author3->user_login,
$guest_author_1->user_login,
$this->author3,
$guest_author_1,
]
);
}
Expand Down Expand Up @@ -1283,9 +1283,9 @@ public function test_append_coauthors_from_coauthors_and_user_who_have_not_been_
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author1->user_login,
$this->author3->user_login,
$guest_author_1->user_login,
$this->author1,
$this->author3,
$guest_author_1,
]
);
}
Expand Down Expand Up @@ -1347,8 +1347,8 @@ public function test_assign_post_authors_from_coauthors_who_are_linked() {
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author2->user_login,
$this->author3->user_login,
$this->author2,
$this->author3,
]
);
}
Expand Down Expand Up @@ -1419,9 +1419,9 @@ public function test_append_post_authors_from_coauthors_one_of_whom_is_linked()
$this->assertPostHasCoAuthors(
$post_id,
[
$this->editor1->user_login,
$guest_author_1->user_login,
$this->author3->user_login,
$this->editor1,
$guest_author_1,
$this->author3,
]
);
}
Expand Down Expand Up @@ -1493,9 +1493,9 @@ public function test_assign_multiple_post_authors_wp_user_guest_author_linked_us
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author1->user_login,
$guest_author_1->user_login,
$this->author3->user_login,
$this->author1,
$guest_author_1,
$this->author3,
]
);
}
Expand Down Expand Up @@ -1581,9 +1581,9 @@ public function test_assign_multiple_post_authors_only_one_linked_passed_last()
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author3->user_login,
$guest_author_1->user_login,
$guest_author_2->user_login,
$this->author3,
$guest_author_1,
$guest_author_2,
]
);
}
Expand Down Expand Up @@ -1653,9 +1653,9 @@ public function test_assign_multiple_post_authors_one_user_before_one_linked_pas
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author2->user_login,
$this->author3->user_login,
$guest_author_1->user_login,
$this->author2,
$this->author3,
$guest_author_1,
]
);
}
Expand Down Expand Up @@ -1726,9 +1726,9 @@ public function test_assign_multiple_post_authors_one_linked_passed_first() {
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author2->user_login,
$this->author3->user_login,
$guest_author_1->user_login,
$this->author2,
$this->author3,
$guest_author_1,
]
);
}
Expand Down Expand Up @@ -1800,9 +1800,9 @@ public function test_assign_multiple_post_authors_one_linked_passed_using_user_l
$this->assertPostHasCoAuthors(
$post_id,
[
$this->author2->user_login,
$this->author3->user_login,
$guest_author_1->user_login,
$this->author2,
$this->author3,
$guest_author_1,
]
);

Expand Down

0 comments on commit 312d519

Please sign in to comment.