Skip to content

Commit

Permalink
adding sample test functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
rclations committed Jun 23, 2017
1 parent c7f8d59 commit f578185
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions endpoint/templates/tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ function test_class_access() {
* @since <%= version %>
*/
function test_sample() {
/*
wp_set_current_user( $this->administrator );
$request = new WP_REST_Request( 'POST', '/endpoint' );
$request->set_param( 'key', 'value' );
$response = $this->server->dispatch( $request );
$this->assertResponseStatus( 200, $response );
*/
$this->assertTrue( true );
}

Expand Down

0 comments on commit f578185

Please sign in to comment.