- Timestamp:
- 11/14/2014 02:01:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/notifications/functions.php
r8958 r9139 6 6 class BP_Tests_Notifications_Functions extends BP_UnitTestCase { 7 7 public function test_cache_invalidation_all_for_user_on_save() { 8 $u = $this-> create_user();8 $u = $this->factory->user->create(); 9 9 $n1 = $this->factory->notification->create( array( 10 10 'component_name' => 'groups', … … 34 34 35 35 public function test_cache_invalidation_all_for_user_on_delete() { 36 $u = $this-> create_user();36 $u = $this->factory->user->create(); 37 37 $n1 = $this->factory->notification->create( array( 38 38 'component_name' => 'groups', … … 97 97 */ 98 98 public function test_bp_notifications_get_unread_notification_count_cache() { 99 $u1 = $this-> create_user();100 $u2 = $this-> create_user();99 $u1 = $this->factory->user->create(); 100 $u2 = $this->factory->user->create(); 101 101 102 102 $n1 = $this->factory->notification->create( array( … … 126 126 */ 127 127 public function test_bp_has_notifications_filtering() { 128 $u1 = $this-> create_user();129 $u2 = $this-> create_user();128 $u1 = $this->factory->user->create(); 129 $u2 = $this->factory->user->create(); 130 130 131 131 // create a mixture of different notifications
Note: See TracChangeset
for help on using the changeset viewer.