/**
  * Test Render
  *
  * @todo Implement testRender().
  *
  * @return void
  */
 public function testRender()
 {
     $app = JFactory::getApplication();
     // Test with no messages in the queue
     $matcher = array('id' => 'system-message-container', 'tag' => 'div');
     $this->assertTag($matcher, $this->_instance->render('foo'), 'Expected a <div> with id "system-message-container"');
     // Test with a message in the queue
     $app->enqueueMessage('foo', 'bar');
     $matcher['child'] = array('id' => 'system-message', 'tag' => 'div', 'child' => array('tag' => 'div', 'attributes' => array('class' => 'alert alert-bar')));
     $this->assertTag($matcher, $this->_instance->render('foo'), 'Expected a tag structure like #system-message-container > #system-message > .alert.alert-bar');
 }
 /**
  * @testdox  Test the default return for render
  */
 public function testTheDefaultReturnForRender()
 {
     $this->assertContains('<div id="system-message-container"', $this->instance->render('unused'));
 }