All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions
NotificationTest Class Reference
Inheritance diagram for NotificationTest:
ZurmoBaseTest BaseTest

Public Member Functions

 testGetCountByUser ()
 testNotification ()
 testNotificationMessage ()
 testGetCountByTypeAndUser ()
 testNonAdminCanCreateNotificationsAndMessages ()
 testRelationsBetweenNotificationAndNotificationMessage ()
 testDeleteByTypeAndUser ()
- Public Member Functions inherited from ZurmoBaseTest
 setUp ()
- Public Member Functions inherited from BaseTest
 setup ()
 teardown ()

Static Public Member Functions

static setUpBeforeClass ()
- Static Public Member Functions inherited from ZurmoBaseTest
static setUpBeforeClass ()
static tearDownAfterClass ()
- Static Public Member Functions inherited from BaseTest
static setUpBeforeClass ()
static tearDownAfterClass ()
static resetAndPopulateFilesArrayByFilePathAndName ($arrayName, $filePath, $fileName)
static getDependentTestModelClassNames ()
static getReflectedPropertyValue ($object, $propertyName)

Additional Inherited Members

- Static Public Attributes inherited from ZurmoBaseTest
static $activateDefaultLanguages = false
- Static Public Attributes inherited from BaseTest
static $activateDefaultLanguages = false
- Protected Member Functions inherited from ZurmoBaseTest
 endPrintOutputBufferAndFail ()
- Protected Member Functions inherited from BaseTest
 assertWithinTolerance ($expected, $actual, $plusMinus)
 assertWithinPercentage ($expected, $actual, $percentage)
 isDebug ()
- Static Protected Member Functions inherited from ZurmoBaseTest
static startOutputBuffer ()
static endAndGetOutputBuffer ()
- Static Protected Member Functions inherited from BaseTest
static getProtectedMethod ($className, $methodName)
- Static Protected Attributes inherited from ZurmoBaseTest
static $activitiesObserver
static $conversationsObserver
static $emailMessagesObserver
static $contactLatestActivityDateTimeObserver
static $accountLatestActivityDateTimeObserver
static $accountContactAffiliationObserver

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:
Generated on Thu Jan 23 2020 07:10:38