Skip to content

Commit

Permalink
fix: some small quick fixes for formatting and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesshop committed Oct 25, 2023
1 parent e3a120a commit 6afab35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Integration/CoAuthorsPlusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ public function test_assign_post_author_from_author_who_has_not_been_linked() {
*
* @return void
*/
public function test_append_post_author_who_has_not_been_linked( ) {
public function test_append_post_author_who_has_not_been_linked() {
$post_id = $this->factory()->post->create(
array(
'post_author' => $this->author2->ID,
Expand All @@ -781,6 +781,7 @@ public function test_append_post_author_who_has_not_been_linked( ) {
)
);

// Immediately update the co-authors, adding $author3 to the existing $author2.
$this->_cap->add_coauthors( $post_id, array( $this->author3->user_login ), true );

$query = new WP_Query(
Expand All @@ -790,6 +791,7 @@ public function test_append_post_author_who_has_not_been_linked( ) {
);

$this->assertEquals( 1, $query->found_posts );
// Although we added a co-author, the wp_posts.post_author column should still be attributed to $author2.
$this->assertEquals( $this->author2->ID, $query->posts[0]->post_author );

$post_author_terms = wp_get_post_terms( $post_id, $this->_cap->coauthor_taxonomy );
Expand Down

0 comments on commit 6afab35

Please sign in to comment.