public function testRegisterMethod() { $this->setupServices(); $this->notifications->registerMethod('test_method'); $methods = array('test_method' => 'test_method'); $this->assertEquals($methods, $this->notifications->getMethods()); }