10up / wp_mock

WordPress API Mocking Framework
https://wp-mock.gitbook.io
Other
676 stars 70 forks source link

Add setInaccessiblePropertyValue helper method and update docs #223

Closed unfulvio-godaddy closed 1 year ago

unfulvio-godaddy commented 1 year ago

Summary

While adding https://github.com/10up/wp_mock/pull/220 I forgot one method (for @10up/godaddy-wp_mock these are basically the same as in MWC Tests, and with the addition of this PR we can drop them -- figured these are generally helpful and could be part of WP_Mock directly).

This PR also updates the docs related to AccessInaccessibleClassMembersTrait.

Fixes an unrelated flaky test.

Contributor checklist

Testing

Reviewer checklist

- [ ] Code changes review - [ ] Documentation changes review - [ ] Unit tests pass - [ ] Static analysis passes
coveralls commented 1 year ago

Coverage Status

coverage: 65.6% (+0.05%) from 65.554% when pulling 77d399804de96dacee4cb07638c919c0561fdba7 on chore/add-set-inaccessible-property-value-helper-method into c176fd84d20636fb656d9f12f6cfff8d171c78c9 on trunk.

unfulvio-godaddy commented 1 year ago

thanks for the suggestiosn @nmolham-godaddy - I applied those changes with references to PHP.net docs