WordPress.org

Make WordPress Core

Changeset 36678


Ignore:
Timestamp:
02/24/2016 08:28:12 AM (4 years ago)
Author:
rmccue
Message:

REST API: Fix error in Request tests.

On the 21st of November, 2014, I committed tests for WP_REST_Request
to the API plugin. Although I didn't realise at the time, I was
causing my future self to go through hours of sufferring.

Unfortunately, I forgot to call parent::setUp() which would break
the tests in subtle ways in the future and would ruin the good part
of my day.

Let this be a warning to all of you who write future unit tests.

See https://github.com/WP-API/WP-API/commit/f0396be17e1dd312065a2382e4e8a1361c1eb634
for the original commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.