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

add behat tests for install-wp-tests.sh #37

Merged

Conversation

miya0001
Copy link
Member

@miya0001 miya0001 commented Aug 8, 2017

Add behat tests for templates/install-wp-tests.sh.

There are 3 scenarios.

  • Usage should be displayed.
  • Installs latest version of the WordPress.
  • Installs WordPress 3.7.

@miya0001
Copy link
Member Author

miya0001 commented Aug 8, 2017

Related: #35

@miya0001 miya0001 requested review from a team and removed request for a team August 8, 2017 10:43
@miya0001
Copy link
Member Author

miya0001 commented Aug 8, 2017

Ah, I want to improve those tests to run phpunit.

@danielbachhuber
Copy link
Member

Great work on this @miya0001 — thanks for taking the initiative.

@miya0001
Copy link
Member Author

miya0001 commented Aug 8, 2017

I finished to develop it.

There are 3 scenarios:

  • Run install-wp-tests.sh with latest, then check the files should exist as expected and run phpunit.
  • Run install-wp-tests.sh with trunk, then check the files should exist as expected and run phpunit.
  • Run install-wp-tests.sh with 3.7, then check the files should exist as expected. But phpunit isn't executed because older version of WordPress or WP_UnitTestCase does't have compatiblity with PHP 7.1 or PHP 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants