Changeset 7521 for trunk/tests/includes/factory.php
- Timestamp:
- 11/07/2013 05:15:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/factory.php
r7107 r7521 10 10 $this->xprofile_group = new BP_UnitTest_Factory_For_XProfileGroup( $this ); 11 11 $this->xprofile_field = new BP_UnitTest_Factory_For_XProfileField( $this ); 12 $this->notification = new BP_UnitTest_Factory_For_Notification( $this ); 12 13 } 13 14 } … … 147 148 } 148 149 } 150 151 class BP_UnitTest_Factory_For_Notification extends WP_UnitTest_Factory_For_Thing { 152 public function __construct( $factory = null ) { 153 parent::__construct( $factory ); 154 } 155 156 public function create_object( $args ) { 157 return bp_notifications_add_notification( $args ); 158 } 159 160 public function update_object( $id, $fields ) {} 161 162 public function get_object_by_id( $id ) { 163 return new BP_Notifications_Notification( $id ); 164 } 165 }
Note: See TracChangeset
for help on using the changeset viewer.