elementor / elementor/static-html-output
look into WorDBless for testing WPSite or such classes
- Dominant language
- PHP
- Stars
- 128
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Last regression issue was related to incorrectly parsing/forming URLs and I'm pretty sure there's no test coverage of that class.
[WorDBless](https://github.com/Automattic/wordbless) looks like it can help by setting WP options and then asserting on `WPSite`'s properties and methods.
Test boundaries for URLs and paths, like:
- [ ] http
- [ ] https
- [ ] custom ports
- [ ] localhost
- [ ] sub.sub.domain
- [ ] domain.tld/subdir (expect it to start red)
- [ ] win filepaths `C:\something\xampp\somedir\`
- [ ] trailing/non-trailing slashes (do we need to check or does WP force one?)
- [ ] filepath with dev site domain within it, ie `/var/www/mydomain.com/htdocs`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.