Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Deprecated WP_Mock calls #7

Closed
dana-ross opened this issue Mar 30, 2018 · 0 comments
Closed

Deprecated WP_Mock calls #7

dana-ross opened this issue Mar 30, 2018 · 0 comments
Assignees

Comments

@dana-ross
Copy link
Contributor

dave@DESKTOP-BT7RIFJ /mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test (master) $ vendor/bin/phpunit
PHPUnit 6.5.7 by Sebastian Bergmann and contributors.

.R.RR                                                               5 / 5 (100%)

Time: 3.03 seconds, Memory: 10.00MB

There were 3 risky tests:

1) TenUp\GeneratorTest\Core\Core_Tests::test_i18n
Deprecated WP Mock calls inside :
  WP_Mock::wpFunction ["get_locale","Array([3] ...)"]
                      ["load_textdomain","Array([2] ...)"]
                      ["plugin_basename","Array([3] ...)"]
                      ["load_plugin_textdomain","Array([2] ...)"]

/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/DeprecatedListener.php:33
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/Tools/TestCase.php:314
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/Tools/TestCase.php:307
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/tests/phpunit/test-tools/TestCase.php:13

2) TenUp\GeneratorTest\Core\Core_Tests::test_activate
Deprecated WP Mock calls inside :
  WP_Mock::wpFunction ["flush_rewrite_rules","Array([1] ...)"]

/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/DeprecatedListener.php:33
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/Tools/TestCase.php:314
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/Tools/TestCase.php:307
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/tests/phpunit/test-tools/TestCase.php:13

3) TenUp\GeneratorTest\Core\Core_Tests::test_deactivate
This test did not perform any assertions

/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/vendor/10up/wp_mock/php/WP_Mock/Tools/TestCase.php:307
/mnt/c/Users/dave/Code/wp-local-docker/wordpress/wp-content/plugins/generator-test/tests/phpunit/test-tools/TestCase.php:13

OK, but incomplete, skipped, or risky tests!
Tests: 5, Assertions: 4, Risky: 3.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant