Skip to content

Commit

Permalink
Tests: check wp-test-utils branch
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed Sep 25, 2023
1 parent b1da501 commit fe1ab7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"wp-cli/extension-command": "^2.0",
"wp-cli/wp-cli-tests": "^3",
"wp-coding-standards/wpcs": "^2.3.0",
"yoast/wp-test-utils": "^1.1"
"yoast/wp-test-utils": "dev-JRF/update-for-phpunit-polyfills-1.1.0"
},
"autoload": {
"classmap": [
Expand Down
3 changes: 2 additions & 1 deletion tests/Integration/CoAuthorsPlusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public function test_get_coauthor_by_when_guest_author() {
$coauthor = $coauthors_plus->get_coauthor_by( 'id', $guest_author_id );

$this->assertInstanceOf( \stdClass::class, $coauthor );
$this->assertTrue( property_exists( $coauthor, 'ID' ) );
// $this->assertTrue( property_exists( $coauthor, 'ID' ) );
$this->assertObjectHasProperty( 'ID', $coauthor );
$this->assertEquals( $guest_author_id, $coauthor->ID );
$this->assertEquals( 'guest-author', $coauthor->type );
}
Expand Down

0 comments on commit fe1ab7c

Please sign in to comment.