Changeset 8119 for trunk/tests/includes/factory.php
- Timestamp:
- 03/13/2014 12:58:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/factory.php
r7873 r8119 11 11 $this->xprofile_field = new BP_UnitTest_Factory_For_XProfileField( $this ); 12 12 $this->notification = new BP_UnitTest_Factory_For_Notification( $this ); 13 $this->signup = new BP_UnitTest_Factory_For_Signup( $this ); 13 14 } 14 15 } … … 164 165 } 165 166 } 167 168 class BP_UnitTest_Factory_For_Signup extends WP_UnitTest_Factory_For_Thing { 169 public function __construct( $factory = null ) { 170 parent::__construct( $factory ); 171 } 172 173 public function create_object( $args ) { 174 return BP_Signup::add( $args ); 175 } 176 177 public function update_object( $id, $fields ) {} 178 179 public function get_object_by_id( $id ) { 180 return new BP_Signup( $id ); 181 } 182 }
Note: See TracChangeset
for help on using the changeset viewer.