8000 Fix unneeded double quotes around slashed comment content in tests · WP-API/WP-API@e25d95b · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit e25d95b

Browse files
committed
Fix unneeded double quotes around slashed comment content in tests
1 parent 65f0647 commit e25d95b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test-rest-comments-controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ public function test_create_item_invalid_date() {
802802
'author_name' => 'Reverend Lovejoy',
803803
'author_email' => 'lovejoy@example.com',
804804
'author_url' => 'http://timothylovejoy.jr',
805-
'content' => "It\'s all over\, people! We don\'t have a prayer!",
805+
'content' => 'It\'s all over\, people! We don\'t have a prayer!',
806806
'date' => rand_str(),
807807
);
808808

@@ -1166,7 +1166,7 @@ public function test_create_item_invalid_author() {
11661166
$params = array(
11671167
'post' => $this->post_id,
11681168
'author' => REST_TESTS_IMPOSSIBLY_HIGH_NUMBER,
1169-
'content' => "It\'s all over\, people! We don\'t have a prayer!",
1169+
'content' => 'It\'s all over\, people! We don\'t have a prayer!',
11701170
);
11711171

11721172
$request = new WP_REST_Request( 'POST', '/wp/v2/comments' );
@@ -1184,7 +1184,7 @@ public function test_create_item_pull_author_info() {
11841184
$params = array(
11851185
'post' => $this->post_id,
11861186
'author' => $this->author_id,
1187-
'content' => "It\'s all over\, people! We don\'t have a prayer!",
1187+
'content' => 'It\'s all over\, people! We don\'t have a prayer!',
11881188
);
11891189

11901190
$request = new WP_REST_Request( 'POST', '/wp/v2/comments' );

0 commit comments

Comments
 (0)
0