Opened 6 years ago
Closed 6 years ago
#45077 closed enhancement (fixed)
REST API: Improve term meta tests
Reported by: | SergeyBiryukov | Owned by: | pento |
---|---|---|---|
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
@ticket
annotations. - Use
assertSame
instead ofassertEquals
, asnull
,false
and''
are equal underassertEquals
. - Use
assertFalse
instead 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.