PHP Class Elgg\Notifications\NotificationsServiceTestCase

Inheritance: extends Elgg\TestCase
Afficher le fichier Open project: elgg/elgg

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

public getTestObject ( )

prepareTestObjects() public méthode

public prepareTestObjects ( )

setUp() public méthode

public setUp ( )

setupServices() public méthode

public setupServices ( )

tearDown() public méthode

public tearDown ( )

testCanAlterSubscriptionNotificationTranslations() public méthode

testCanNotifyUser() public méthode

public testCanNotifyUser ( )

testCanNotifyUserViaCustomMethods() public méthode

testCanNotifyUserWithoutAnObject() public méthode

testCanPrepareSubscriptionNotification() public méthode

testCanProcessSubscriptionNotificationsQueue() public méthode

testCanUseEnqueueHookToPreventSubscriptionNotificationEventFromQueueing() public méthode

testCanUseHooksBeforeAndAfterInstantNotificationsQueue() public méthode

testCanUseHooksBeforeAndAfterSubscriptionNotificationsQueue() public méthode

testEnqueueEvent() public méthode

public testEnqueueEvent ( )

testProcessQueueNoEvents() public méthode

testProcessQueueThreeEvents() public méthode

testProcessQueueTimesout() public méthode

testRegisterEvent() public méthode

public testRegisterEvent ( )

testRegisterMethod() public méthode

public testRegisterMethod ( )

testStoppingEnqueueEvent() public méthode

testUnregisterEvent() public méthode

public testUnregisterEvent ( )

testUnregisterMethod() public méthode

testValidatesActorExistenceForDequeuedSubscriptionNotificationEvent() public méthode

testValidatesObjectExistenceForDequeuedSubscriptionNotificationEvent() public méthode

Property Details

$actor protected_oe property

protected ElggUser $actor
Résultat ElggUser

$events protected_oe property

protected EventsService,Elgg $events
Résultat Elgg\EventsService

$hooks protected_oe property

protected PluginHooksService,Elgg $hooks
Résultat Elgg\PluginHooksService

$logger protected_oe property

protected Logger,Elgg $logger
Résultat Elgg\Logger

$notifications protected_oe property

protected NotificationsService,Elgg\Notifications $notifications
Résultat NotificationsService

$queue protected_oe property

protected MemoryQueue,Elgg\Queue $queue
Résultat Elgg\Queue\MemoryQueue

$session protected_oe property

protected ElggSession $session
Résultat ElggSession

$subscriptions protected_oe property

protected SubscriptionsService,Elgg\Notifications $subscriptions
Résultat SubscriptionsService

$test_object_class protected_oe property

protected string $test_object_class
Résultat string

$time protected_oe property

protected int $time
Résultat integer