%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/ceaa/wp-content/plugins/buddypress/cli/features/
Upload File :
Create Path :
Current File : /var/www/html/ceaa/wp-content/plugins/buddypress/cli/features/component.feature

Feature: Manage BuddyPress Components

  Scenario: Component CRUD Operations
    Given a BP install

    When I run `wp bp component list --format=count`
    Then STDOUT should be:
      """
      10
      """

    When I run `wp bp component list --type=required --format=count`
    Then STDOUT should be:
      """
      2
      """

    When I run `wp bp component list --type=required`
    Then STDOUT should be a table containing rows:
      | number | id      | status    |  title             | description                                                       |
      | 1      | core    | Active    |  BuddyPress Core   | It&#8216;s what makes <del>time travel</del> BuddyPress possible! |
      | 2      | members | Inactive  |  Community Members | Everything in a BuddyPress community revolves around its members. |

    When I run `wp bp component list --fields=id --type=required`
    Then STDOUT should be a table containing rows:
      | id      |
      | core    |
      | members |

    When I run `wp bp component deactivate groups`
    Then STDOUT should contain:
      """
      Success: The Groups component has been deactivated.
      """

    When I try `wp bp component deactivate groups`
    Then the return code should be 1

    When I run `wp bp component activate groups`
    Then STDOUT should contain:
      """
      Success: The Groups component has been activated.
      """

    When I try `wp bp component activate groups`
    Then the return code should be 1

Zerion Mini Shell 1.0