Example #1
0
 /**
  * Add a slack integration
  */
 function add_integration()
 {
     gnt_register_integration($this->slug, array('name' => __('Slack', 'get-notified'), 'hooks' => true));
 }
 /**
  * Test to make sure the integrations we get are an array
  * @return null
  */
 function test_register_integration()
 {
     gnt_register_integration('test', array('name' => 'Test Integration'));
     $integrations = gnt_get_integrations();
     $this->assertTrue(array_key_exists('test', $integrations));
 }