Elgg\Notifications\NotificationsService::getMethods PHP Method

getMethods() public method

public getMethods ( )
    public function getMethods()
    {
        return $this->methods;
    }

Usage Example

 public function testUnregisterMethod()
 {
     $this->setupServices();
     $this->notifications->registerMethod('test_method');
     $this->assertTrue($this->notifications->unregisterMethod('test_method'));
     $this->assertEquals(array(), $this->notifications->getMethods());
     $this->assertFalse($this->notifications->unregisterMethod('test_method'));
 }