Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38991 closed enhancement (fixed)

REST API: Add missing test for creating a comment with an invalid post ID

Reported by: jnylen0's profile jnylen0 Owned by: jnylen0's profile Jnylen0
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords: has-patch fixed-major commit
Focuses: Cc:

Description

#38816 fixed creating a comment with an invalid post ID (this should not be allowed), but we need a test for this.

Attachments (1)

38991.diff (1.3 KB) - added by jnylen0 8 years ago.

Download all attachments as: .zip

Change History (6)

@jnylen0
8 years ago

#1 @rachelbaker
8 years ago

  • Milestone changed from Awaiting Review to 4.7
  • Owner set to Jnylen0
  • Status changed from new to assigned

@jnylen0 Want to go ahead and commit this this for 4.7?

#2 @jnylen0
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 39375:

REST API: Add test for creating a comment with an invalid post ID.

#38816 fixed creating a comment with an invalid post ID (this should not be
allowed), but we need a test for this.

Fixes #38991.

#3 @jnylen0
8 years ago

Done in trunk. @rachelbaker seeing as how guest committers shall not pass to 4.7 during RC, can you handle the merge to the 4.7 branch?

#4 @ocean90
8 years ago

  • Keywords fixed-major commit added
  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @rachelbaker
8 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 39408:

REST API: Add test for creating a comment with an invalid post ID.

Props @jnylen0.

Merges [39375] to the 4.7 branch.
Fixes #38991 for 4.7.

Note: See TracTickets for help on using tickets.