elementor / elementor/static-html-output

look into WorDBless for testing WPSite or such classes

Open
#164 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.