Skip to content

WordPress installation support for 'local' plugin #32

Closed

Description

@beeradb

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Task

Information:
This adds WP support to the work done in #27

Done criteria:

  • Latest version of Wordpress should work with this local plugin
  • MySQL connection information should be printed alongside the site URL to assist the user in installing WP
  • Pulling in assets such as a DB dump or a files backup is not required for this, but if it makes sense/saves time then it's fine as a stretch goal.

Testing approach

  • Should have tests to ensure the install page returns the correct HTTP status
  • Should parse MySQL connection info from the CLI output and ensure the connection is working

Activity

  1. added this to the milestone on Feb 27, 2017
  2. rickmanelius commented on Mar 21, 2017

    @rickmanelius
    Contributor

    Unless I'm missing anything, this looks like we're in a fully actionable state.

  3. beeradb commented on Mar 21, 2017

    @beeradb
    ContributorAuthor

    This is actually already working based on the work in #27. At this point, we probably just need to define our testing approach and add test coverage.

  4. rickmanelius commented on Mar 21, 2017

    @rickmanelius
    Contributor

    Agreed regarding that the functionality works. Just need to complete the documentation and tests as you've noted and this is done! My last comment was more to note that this ticket is appropriately labeled/queued as per our workflow docs.

  5. tannerjfco commented on Mar 28, 2017

    @tannerjfco
    Contributor

    Unless I'm mistaken, it seems like the test approach defined here had in mind our original intent to run the site installation, which we moved away from. Setting import aside, what is there to actually test for 'wordpress support'? If there is something to test here, there should also be cases for drupal. I don't believe we currently have any test coverage specific to one platform (aside from config file writing).

  6. rickmanelius commented on Mar 30, 2017

    @rickmanelius
    Contributor

    To address the last comment by Tanner. We are considering this "done" when effectively an end-user can get to the WP site install screen and then effectively complete and installation given the database connection credentials. Similar to support for D7 and D8, I think it's wise that our tests can confirm it by getting the 200 response on the install page and prove the mysql connection is valid.

  7. self-assigned this
    on Apr 18, 2017
  8. rickmanelius commented on Apr 18, 2017

    @rickmanelius
    Contributor

    This looks like this ticket is mostly in a clean-up state. To confirm, I would like a manual test of spinning up a WordPress site using our WordPress repo (https://github.com/drud/wordpress) and then for testing purposes, like Drupal we just need to verify that we can get to the install screen.

    In the future, I think it would be helpful to actually step through a Drupal site profile install and WP install because there can be a variety of things that trip this up (db credentials are wrong, templates don't work, etc).

  9. rickmanelius commented on Apr 18, 2017

    @rickmanelius
    Contributor

    I'm pleased to report that it took all of 3 minutes from the time I finished this request to manually testing a successful WordPress install. I'm very happy about that :)

    Now it's more about testing. We can either push the tests off to other tickets (example, the wp-config.php, describe, and import commands), or we can do more of an integrated test that actually runs ddev exec for drush and/or WPCLI and confirms an installation.

  10. removed their assignment
    on Apr 19, 2017
  11. rickmanelius commented on Apr 19, 2017

    @rickmanelius
    Contributor

    Need feedback from either @rfay @beeradb @tannerjfco on what we want to do for an automated test (if anything). If nothing, this is complete.

  12. beeradb commented on Apr 19, 2017

    @beeradb
    ContributorAuthor

    I would love to see a wordpress site added to our existing test coverage, preferably including an import (to check config functionality).

    It seems like this could also be a great time to get explicit test coverage on the MySQL connection at sitename.ddev.local:3306, although perhaps the import tests we have for drupal7/8 for other sites do that well enough.

  13. tannerjfco commented on Apr 19, 2017

    @tannerjfco
    Contributor
  14. beeradb commented on Apr 19, 2017

    @beeradb
    ContributorAuthor

    well then! I feel like we're probably pretty good on this, then.

  15. rickmanelius commented on Apr 19, 2017

    @rickmanelius
    Contributor

    Cool. So I'm assuming this tests a success load of the install page. We'll revisit the need to test working site installs later on.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions