diff --git a/tests/Integration/CoAuthorsPlusTest.php b/tests/Integration/CoAuthorsPlusTest.php index 89c27f76..25172ed6 100644 --- a/tests/Integration/CoAuthorsPlusTest.php +++ b/tests/Integration/CoAuthorsPlusTest.php @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] ); } @@ -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, ] );