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

Unit tests are broken #30

Closed
rrelmy opened this issue Dec 14, 2018 · 1 comment
Closed

Unit tests are broken #30

rrelmy opened this issue Dec 14, 2018 · 1 comment

Comments

@rrelmy
Copy link
Contributor

rrelmy commented Dec 14, 2018

php please test
PHPUnit 5.7.20 by Sebastian Bergmann and contributors.

.............EE..EEEEE.........                                   31 / 31 (100%)

Time: 2.62 seconds, Memory: 30.00MB

There were 7 errors:

1) Statamic\Addons\Spock\CommanderTest::only_runs_commands_for_whitelisted_environments
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:31

2) Statamic\Addons\Spock\CommanderTest::does_not_run_command_if_event_is_ignored
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:48

3) Statamic\Addons\Spock\CommanderTest::commands_are_run
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:33
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:85

4) Statamic\Addons\Spock\CommanderTest::erroring_commands_are_logged
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:33
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:97

5) Statamic\Addons\Spock\CommanderTest::failed_commands_are_logged
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:33
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:113

6) Statamic\Addons\Spock\CommanderTest::the_literal_string_no_output_is_shown_if_theres_no_output
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:33
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:132

7) Statamic\Addons\Spock\CommanderTest::the_literal_string_no_error_is_shown_if_theres_no_error
ErrorException: get_class() expects parameter 1 to be object, null given

/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:115
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:105
/Users/remy/projects/web/statamic_standard/site/addons/Spock/Commander.php:33
/Users/remy/projects/web/statamic_standard/site/addons/Spock/tests/CommanderTest.php:151

Can someone confirm this?

@jesseleite
Copy link
Member

Fixed in 2.1.1, thanks!

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