indieweb / wordpress-micropub

A Micropub Endpoint plugin for WordPress
https://wordpress.org/plugins/micropub
51 stars 12 forks source link

Fix PHP 7.4 unit tests #220

Closed Lewiscowles1986 closed 4 years ago

Lewiscowles1986 commented 4 years ago

Make failing url_to_user predictable and unique

Background

I've not looked at the database, but I'm fairly certain there are two users with the home_url()

Maybe there is something more to clean up but this I feel captures the unique nature of each individual in Indieweb by having each user have their own URL

It seems to fix tests using PHP 7.4.4 on Ubuntu Bionic

Solution

don't use home_url, but rather a unique url / path in this test-case