Changeset 9139 for trunk/tests/phpunit/testcases/notifications/class-bp-notifications-notification.php
- Timestamp:
- 11/14/2014 02:01:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/notifications/class-bp-notifications-notification.php
r8958 r9139 9 9 */ 10 10 public function test_get_null_component_name() { 11 $u = $this-> create_user();11 $u = $this->factory->user->create(); 12 12 $n1 = $this->factory->notification->create( array( 13 13 'component_name' => 'groups', … … 53 53 */ 54 54 public function test_get_total_count_null_component_name() { 55 $u = $this-> create_user();55 $u = $this->factory->user->create(); 56 56 $n1 = $this->factory->notification->create( array( 57 57 'component_name' => 'groups', … … 95 95 */ 96 96 public function test_get_total_count_with_component_name() { 97 $u = $this-> create_user();97 $u = $this->factory->user->create(); 98 98 $n1 = $this->factory->notification->create( array( 99 99 'component_name' => 'groups', … … 123 123 public function test_order_by_date() { 124 124 $now = time(); 125 $u = $this-> create_user();125 $u = $this->factory->user->create(); 126 126 $n1 = $this->factory->notification->create( array( 127 127 'component_name' => 'friends', … … 156 156 */ 157 157 public function test_is_new_true() { 158 $u = $this-> create_user();158 $u = $this->factory->user->create(); 159 159 $n1 = $this->factory->notification->create( array( 160 160 'component_name' => 'friends', … … 188 188 */ 189 189 public function test_is_new_false() { 190 $u = $this-> create_user();190 $u = $this->factory->user->create(); 191 191 $n1 = $this->factory->notification->create( array( 192 192 'component_name' => 'friends', … … 220 220 */ 221 221 public function test_is_new_both() { 222 $u = $this-> create_user();222 $u = $this->factory->user->create(); 223 223 $n1 = $this->factory->notification->create( array( 224 224 'component_name' => 'friends', … … 253 253 */ 254 254 public function test_get_with_search_terms() { 255 $u = $this-> create_user();255 $u = $this->factory->user->create(); 256 256 $n1 = $this->factory->notification->create( array( 257 257 'component_name' => 'friends',
Note: See TracChangeset
for help on using the changeset viewer.