Skip to content

Commit feb059a

Browse files
committed
adding sample test functionality
1 parent c7f8d59 commit feb059a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

endpoint/templates/tests.php

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ function test_class_access() {
4242
* @since <%= version %>
4343
*/
4444
function test_sample() {
45+
/*
46+
wp_set_current_user( $this->administrator );
47+
48+
$request = new WP_REST_Request( 'POST', '/no-nonsense-google-analytics/v1/tracking-code' );
49+
$request->set_param( 'key', 'value' );
50+
$response = $this->server->dispatch( $request );
51+
$this->assertResponseStatus( 200, $response );
52+
*/
4553
$this->assertTrue( true );
4654
}
4755

0 commit comments

Comments
 (0)