Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

look into WorDBless for testing WPSite or such classes #164

Open
9 tasks
leonstafford opened this issue Dec 17, 2020 · 1 comment
Open
9 tasks

look into WorDBless for testing WPSite or such classes #164

leonstafford opened this issue Dec 17, 2020 · 1 comment

Comments

@leonstafford
Copy link
Contributor

Last regression issue was related to incorrectly parsing/forming URLs and I'm pretty sure there's no test coverage of that class.

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
@leonstafford
Copy link
Contributor Author

compare with https://github.com/Brain-WP/BrainMonkey and other options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant