-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
/**
* Tests that get_instructor_list() returns the expected output.
*
* @return void
*/
public function test_get_instructor_list(): void {
// Arrange.
// Act.
$response = $this->instance->get_instructor_list( new WP_REST_Request() );
// Assert.
if ( is_wp_error( $response ) ) {
$this->fail( $response->get_error_message() );
}
if ( ! $response instanceof WP_REST_Response ) {
$this->fail( 'Something caused neither a WP_Error or a WP_REST_Response object to be returned' );
}
}Will currently result in this:
/**
* Tests that get_instructor_list() returns the expected output.
*
* @return void
*/
public function test_get_instructor_list(): void {
// Arrange.
// Act.
$response = $this->instance->get_instructor_list( new WP_REST_Request() );
// Assert.
if ( is_wp_error( $response ) ) {
$this->fail( $response->get_error_message() );
}
if ( ! $response instanceof WP_REST_Response ) {
$this->fail( 'Something caused neither a WP_Error or a WP_REST_Response object to be returned' );
} }Somehow, that tab is being converted to spaces and causing a misalignment. Need to investigate further.
Note: This happens both on v1.1.1 and v1.1.2 and possibly older versions. This may have always been an issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working