[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/tests/phpunit/includes/ -> factory.php (summary)

(no description)

File Size: 343 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 classes

BP_UnitTest_Factory:: (1 method):
  __construct()

BP_UnitTest_Factory_For_User:: (1 method):
  create_object()

BP_UnitTest_Factory_For_Activity:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_Group:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_Message:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_XProfileGroup:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_XProfileField:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_Notification:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_Signup:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()

BP_UnitTest_Factory_For_Friendship:: (4 methods):
  __construct()
  create_object()
  update_object()
  get_object_by_id()


Class: BP_UnitTest_Factory  - X-Ref

__construct()   X-Ref
No description

Class: BP_UnitTest_Factory_For_User  - X-Ref

create_object( $args )   X-Ref
When creating a new user, it's almost always necessary to have the
last_activity usermeta set right away, so that the user shows up in
directory queries. This is a shorthand wrapper for the user factory
create() method.

Also set a display name

Class: BP_UnitTest_Factory_For_Activity  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $activity_id, $fields )   X-Ref
No description

get_object_by_id( $user_id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_Group  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $group_id, $fields )   X-Ref
No description

get_object_by_id( $group_id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_Message  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $message_id, $fields )   X-Ref
No description

get_object_by_id( $message_id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_XProfileGroup  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $group_id, $fields )   X-Ref
No description

get_object_by_id( $group_id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_XProfileField  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $field_id, $fields )   X-Ref
No description

get_object_by_id( $field_id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_Notification  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $id, $fields )   X-Ref
No description

get_object_by_id( $id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_Signup  - X-Ref

__construct( $factory = null )   X-Ref
No description

create_object( $args )   X-Ref
No description

update_object( $id, $fields )   X-Ref
No description

get_object_by_id( $id )   X-Ref
No description

Class: BP_UnitTest_Factory_For_Friendship  - X-Ref

Factory for friendships.

__construct( $factory = null )   X-Ref
Constructor.

param: $factory WP_UnitTest_Factory
since: 2.7.0

create_object( $args )   X-Ref
Create friendship object.

return: int Friendship ID.
param: array $args Array of arguments.
since: 2.7.0

update_object( $id, $fields )   X-Ref
Update a friendship object.

param: int   $id     ID of the friendship.
param: array $fields Fields to update.
since: 2.7.0

get_object_by_id( $id )   X-Ref
Get a friendship object by its ID.

return: BP_Friends_Friendship
param: int $id
since: 2.7.0



Generated: Fri Jul 19 01:01:43 2019 Cross-referenced by PHPXref 0.7.1