Opened 8 years ago
Closed 8 years ago
#45077 closed enhancement (fixed)
REST API: Improve term meta tests
| Reported by: | SergeyBiryukov | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | REST API | Version: | |
| Severity: | normal | Keywords: | has-patch needs-refresh |
| Cc: | Focuses: | rest-api |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Bumping to 5.1 because it's not critical for 5.0. The patch could use a refresh too.