Open berkod opened 2 years ago
Not related to PHP8. This is caused by WP 6.1.0 deprecating the $this->factory access documented here.
This can be quickly patch like this: eg.
$this->_test_factory = Utility::invoke_hidden_static_method( WP_UnitTestCase_Base::class, 'factory' );
I think we need to move the factory set up to a different setter for php8. It's throwing errors in php8 pipelines. Not 100% sure if that's the right way to fix this.
https://github.com/penske-media-corp/pmc-unit-test/blob/867611bdab4465ce18dd0422f0622e5c93945bc2/src/mocks/factory.php#L19-L22