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 (  ) 

testGetCountByUser

Definition at line 71 of file NotificationTest.php.

testNotificationMessage (  ) 

testNotification

Definition at line 91 of file NotificationTest.php.

testGetCountByTypeAndUser (  ) 

testNotificationMessage

Definition at line 111 of file NotificationTest.php.

testNonAdminCanCreateNotificationsAndMessages (  ) 

testGetCountByTypeAndUser

Definition at line 152 of file NotificationTest.php.

testRelationsBetweenNotificationAndNotificationMessage (  ) 

testNonAdminCanCreateNotificationsAndMessages

  • 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 (  ) 

testRelationsBetweenNotificationAndNotificationMessage

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 Jun 24 07:10:27 2017