Skip to content

Commit

Permalink
Merge pull request #12 from wp-graphql/bug/fix-static-method-in-wpgra…
Browse files Browse the repository at this point in the history
…phql-test-case

hotfix: update logData function to be a static method
  • Loading branch information
jasonbahl authored Jul 2, 2021
2 parents 5eed0c5 + c284071 commit 249cdb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestCase/WPGraphQLTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class WPGraphQLTestCase extends \Codeception\TestCase\WPTestCase {
*
* Use --debug flag to view in console.
*/
protected function logData( $data ) {
protected static function logData( $data ) {
if ( is_array( $data ) || is_object( $data ) ) {
\codecept_debug( json_encode( $data, JSON_PRETTY_PRINT ) );
return;
}

\codecept_debug( $data );
}
}
}

0 comments on commit 249cdb0

Please sign in to comment.