Opened 8 years ago
Closed 7 years ago
#45077 closed enhancement (fixed)
REST API: Improve term meta tests
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.1 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | REST API | Keywords: | has-patch needs-refresh |
| Focuses: | rest-api | Cc: |
Description
Bringing over @birgire's patch from #39122:
- Removes duplicated array key assertion:
$this->assertArrayHasKey( 'meta', $data ); - Adds
@ticketannotations. - Use
assertSameinstead ofassertEquals, asnull,falseand''are equal underassertEquals. - Use
assertFalseinstead ofassertEquals( false, ... )
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Bumping to 5.1 because it's not critical for 5.0. The patch could use a refresh too.