Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.216.214
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/buddyboss-platform/cli/features/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/buddyboss-platform/cli/features/xprofile-data.feature
Feature: Manage BuddyPress XProfile Data

  Scenario: XProfile Data CRUD Operations
    Given a BP install

    When I run `wp bp xprofile group create --name="Group Name" --description="Group Description" --porcelain`
    Then STDOUT should be a number
    And save STDOUT as {GROUP_ID}

    When I run `wp bp xprofile field create --field-group-id={GROUP_ID} --name="Field Name" --porcelain`
    Then STDOUT should be a number
    And save STDOUT as {FIELD_ID}

    When I run `wp user create testuser1 testuser1@example.com --porcelain`
    Then STDOUT should be a number
    And save STDOUT as {USER_ID}

    When I run `wp bp xprofile data set --field-id={FIELD_ID} --user-id={USER_ID} --value=foo`
    Then STDOUT should contain:
      """
	    Updated
	    """

    When I run `wp bp xprofile data get --user-id={USER_ID} --field-id={FIELD_ID}`
    Then STDOUT should be:
      """
	    foo
	    """

    When I run `wp bp xprofile data get --user-id={USER_ID}`
    Then STDOUT should be a table containing rows:
      | field_id   | field_name | value |
	    | {FIELD_ID} | Field Name | "foo" |

    When I try `wp bp xprofile data delete --user-id={USER_ID} --yes`
    Then the return code should be 1
    Then STDERR should contain:
      """
	    Either --field-id or --delete-all must be provided
	    """

    When I run `wp bp xprofile data delete --user-id={USER_ID} --field-id={FIELD_ID} --yes`
    Then STDOUT should contain:
      """
	    XProfile data removed
	    """

    When I run `wp bp xprofile data get --user-id={USER_ID} --field-id={FIELD_ID}`
    Then STDOUT should not contain:
      """
      foo
      """

Youez - 2016 - github.com/yon3zu
LinuXploit