Skip to content

Use alternative theme for testing as P2 theme has been retired #200

Closed

Description

@ernilambar

Bug Report

Describe the current, buggy behavior

P2 theme has been removed from the directory. Ref: https://themes.trac.wordpress.org/ticket/30322

We need to find more reliable alternative theme for feature tests.

Reference of P2 theme in our tests: https://github.com/search?q=org%3Awp-cli%20%22wp%20theme%20install%20p2%22&type=code

Activity

  1. changed the title [-]Use alternative theme for testing as `p2` theme has been retired[/-] [+]Use alternative theme for testing as `P2` theme has been retired[/+] on Apr 17, 2024
  2. tfirdaus commented on Apr 17, 2024

    @tfirdaus
    Contributor

    @ernilambar the default theme could be a good replacement in this case :). I think it's been one of the most iconic theme in WordPress.

  3. ernilambar commented on Apr 17, 2024

    @ernilambar
    MemberAuthor

    @tfirdaus Since we have already used TwentyTwelve in several tests, may be it would be good replacement. I have updated feature test in widget command here. wp-cli/widget-command#61

  4. tfirdaus commented on Apr 17, 2024

    @tfirdaus
    Contributor

    @ernilambar I have it updated in the extension command wp-cli/extension-command#417

  5. tfirdaus commented on Apr 17, 2024

    @tfirdaus
    Contributor

    @ernilambar I got a problem in wp-cli/extension-command#417 though, where it says the theme is already installed.

    005 Scenario: Attempting to delete a theme that doesn't exist # features/theme-delete.feature:110
          And I run `wp theme install twentytwelve`               # features/theme-delete.feature:5
            $ wp theme install twentytwelve
            Success: Theme already installed.
    

    What would be the better approach here:

    • Should I pick other theme just for this case?
    • Or, should we find an alternative that might work for all theme install scenario in the feature tests?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions