[wp-trac] [WordPress Trac] #45077: REST API: Improve term meta tests
WordPress Trac
noreply at wordpress.org
Thu Oct 11 06:16:42 UTC 2018
#45077: REST API: Improve term meta tests
----------------------------+------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: REST API | Version:
Severity: normal | Keywords: has-patch commit
Focuses: |
----------------------------+------------------------------
Bringing over @birgire's patch from #39122:
* Removes duplicated array key assertion: `$this->assertArrayHasKey(
'meta', $data );`
* Adds `@ticket` annotations.
* Use `assertSame` instead of `assertEquals`, as `null`, `false` and `''`
are equal under `assertEquals`.
* Use `assertFalse` instead of `assertEquals( false, ... )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45077>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list