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

Issues running codeception integration tests #393

Open
defunctl opened this issue Jan 17, 2019 · 2 comments
Open

Issues running codeception integration tests #393

defunctl opened this issue Jan 17, 2019 · 2 comments

Comments

@defunctl
Copy link
Contributor

We force activate some plugins in our framework and one of those plugins is solr-power and for whatever reason, it looks like running the codeception integration tests is creating some empty variables here

 [PHPUnit\Framework\Exception] count(): Parameter must be an array or an object that implements Countable  
                                                                                                            
#1  /xxxx/wp-content/plugins/solr-power/includes/class-solrpower-sync.php:358
#2  /xxxx/wp-content/plugins/solr-power/includes/class-solrpower-sync.php:87
#3  /xxxx/wp/wp-includes/class-wp-hook.php:288
#4  /xxxx/wp/wp-includes/class-wp-hook.php:310
#5  /xxxx/wp/wp-includes/plugin.php:453
#6  /xxxx/wp/wp-includes/post.php:3747
#7  /xxxx/dev/tests/vendor/lucatume/wp-browser/src/includes/factory/class-wp-unittest-factory-for-post.php:17
#8  /xxxx/dev/tests/vendor/lucatume/wp-browser/src/includes/factory/class-wp-unittest-factory-for-thing.php:32
#9  /xxxx/dev/tests/tests/integration/Tribe/Project/Ratings/ProgramTest.php:28
@defunctl
Copy link
Contributor Author

Well, running SolrPower_Options::get_instance()->initalize_options(); in my test's setUp() method fixes this, but I'm still wondering if this is something you may want to add additional countable checks for?

@danielbachhuber
Copy link
Contributor

@defunctl Sorry for the late reply here. Want to submit a pull request for it?

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

2 participants