Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Mar 22, 2024
1 parent 8307022 commit 29798fa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/phpunit/test-discourse-publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -855,17 +855,17 @@ public function test_force_publish_max_age_prevents_older_posts_from_being_publi
}

/**
* Test that HTML entities are converted to their special characters.
*/
* Test that HTML entities are converted to their special characters.
*/
public function test_conversion_of_html_entities_in_title() {
$title_with_entities = "Title with &";
$title_with_decoded_entities = "Title with &";
self::$post_atts['post_title'] = $title_with_entities;
$title_with_entities = 'Title with &';
$title_with_decoded_entities = 'Title with &';
self::$post_atts['post_title'] = $title_with_entities;

$response = $this->build_response( 'success' );
$response = $this->build_response( 'success' );
$response['body'] = $this->response_body_json( 'post_create' );

add_filter(
add_filter(
'pre_http_request',
function( $prempt, $args, $url ) use ( $response, $title_with_decoded_entities ) {
$body = json_decode( $args['body'] );
Expand All @@ -875,7 +875,7 @@ function( $prempt, $args, $url ) use ( $response, $title_with_decoded_entities )
} else {
return $response;
}
},
},
10,
3
);
Expand Down

0 comments on commit 29798fa

Please sign in to comment.