PHP Class Elgg\Notifications\NotificationsServiceTestCase

Inheritance: extends Elgg\TestCase
Datei anzeigen Open project: elgg/elgg

Protected Properties

Property Type Description
$actor ElggUser
$events Elgg\EventsService
$hooks Elgg\PluginHooksService
$logger Elgg\Logger
$notifications NotificationsService
$queue Elgg\Queue\MemoryQueue
$session ElggSession
$subscriptions SubscriptionsService
$test_object_class string
$time integer

Public Methods

Method Description
getTestObject ( )
prepareTestObjects ( )
setUp ( )
setupServices ( )
tearDown ( )
testCanAlterSubscriptionNotificationTranslations ( )
testCanNotifyUser ( )
testCanNotifyUserViaCustomMethods ( )
testCanNotifyUserWithoutAnObject ( )
testCanPrepareSubscriptionNotification ( )
testCanProcessSubscriptionNotificationsQueue ( )
testCanUseEnqueueHookToPreventSubscriptionNotificationEventFromQueueing ( )
testCanUseHooksBeforeAndAfterInstantNotificationsQueue ( )
testCanUseHooksBeforeAndAfterSubscriptionNotificationsQueue ( )
testEnqueueEvent ( )
testProcessQueueNoEvents ( )
testProcessQueueThreeEvents ( )
testProcessQueueTimesout ( )
testRegisterEvent ( )
testRegisterMethod ( )
testStoppingEnqueueEvent ( )
testUnregisterEvent ( )
testUnregisterMethod ( )
testValidatesActorExistenceForDequeuedSubscriptionNotificationEvent ( )
testValidatesObjectExistenceForDequeuedSubscriptionNotificationEvent ( )

Method Details

getTestObject() public method

public getTestObject ( )

prepareTestObjects() public method

public prepareTestObjects ( )

setUp() public method

public setUp ( )

setupServices() public method

public setupServices ( )

tearDown() public method

public tearDown ( )

testCanAlterSubscriptionNotificationTranslations() public method

testCanNotifyUser() public method

public testCanNotifyUser ( )

testCanNotifyUserViaCustomMethods() public method

testCanNotifyUserWithoutAnObject() public method

testCanPrepareSubscriptionNotification() public method

testCanProcessSubscriptionNotificationsQueue() public method

testCanUseEnqueueHookToPreventSubscriptionNotificationEventFromQueueing() public method

testCanUseHooksBeforeAndAfterInstantNotificationsQueue() public method

testCanUseHooksBeforeAndAfterSubscriptionNotificationsQueue() public method

testEnqueueEvent() public method

public testEnqueueEvent ( )

testProcessQueueNoEvents() public method

testProcessQueueThreeEvents() public method

testProcessQueueTimesout() public method

testRegisterEvent() public method

public testRegisterEvent ( )

testRegisterMethod() public method

public testRegisterMethod ( )

testStoppingEnqueueEvent() public method

testUnregisterEvent() public method

public testUnregisterEvent ( )

testUnregisterMethod() public method

testValidatesActorExistenceForDequeuedSubscriptionNotificationEvent() public method

testValidatesObjectExistenceForDequeuedSubscriptionNotificationEvent() public method

Property Details

$actor protected_oe property

protected ElggUser $actor
return ElggUser

$events protected_oe property

protected EventsService,Elgg $events
return Elgg\EventsService

$hooks protected_oe property

protected PluginHooksService,Elgg $hooks
return Elgg\PluginHooksService

$logger protected_oe property

protected Logger,Elgg $logger
return Elgg\Logger

$notifications protected_oe property

protected NotificationsService,Elgg\Notifications $notifications
return NotificationsService

$queue protected_oe property

protected MemoryQueue,Elgg\Queue $queue
return Elgg\Queue\MemoryQueue

$session protected_oe property

protected ElggSession $session
return ElggSession

$subscriptions protected_oe property

protected SubscriptionsService,Elgg\Notifications $subscriptions
return SubscriptionsService

$test_object_class protected_oe property

protected string $test_object_class
return string

$time protected_oe property

protected int $time
return integer