Example #1
0
 /**
  * Test that messages added with success() are
  * assigned the appropriate type.
  *
  * @covers  \Hubzero\Notification\Handler::success
  * @return  void
  **/
 public function testSuccess()
 {
     $handler = new Handler(new Memory());
     $handler->success('Lorem ipsum dol.');
     $m = $handler->messages();
     $message = array_pop($m);
     $this->assertTrue(is_array($message), 'Individual messages should be of type array');
     $this->assertEquals($message['type'], 'success');
 }