NotificationTest Class Reference

Inheritance diagram for NotificationTest:
ZurmoBaseTest BaseTest

Public Member Functions

 testGetCountByUser ()
 testNotification ()
 testNotificationMessage ()
 testGetCountByTypeAndUser ()
 testNonAdminCanCreateNotificationsAndMessages ()
 testRelationsBetweenNotificationAndNotificationMessage ()
 testDeleteByTypeAndUser ()

Static Public Member Functions

static setUpBeforeClass ()

Detailed Description

Definition at line 37 of file NotificationTest.php.

Member Function Documentation

testNotification (  ) 


Definition at line 71 of file NotificationTest.php.

testNotificationMessage (  ) 


Definition at line 91 of file NotificationTest.php.

testGetCountByTypeAndUser (  ) 


Definition at line 111 of file NotificationTest.php.

testNonAdminCanCreateNotificationsAndMessages (  ) 


Definition at line 152 of file NotificationTest.php.

testRelationsBetweenNotificationAndNotificationMessage (  ) 


  • Add back in if it is possible to get the NotificationMessages to Notifications as RedBeanModel::OWNED //Currently it is not working and cause $this->assertEquals(2, $message->notifications->count()); to return 0. When removing a notificationMessage with notifications, the notifications should be removed too. $this->assertEquals(8, Notification::getCount()); $message->delete(); $this->assertEquals(3, Notification::getCount());

Definition at line 180 of file NotificationTest.php.

testDeleteByTypeAndUser (  ) 


Definition at line 232 of file NotificationTest.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Nov 16 07:11:01 2019