MessagesManagerTest

The Yoast SEO MessagesManagerTest class.

Defined (1)

The class is defined in the following location(s).

/vendor/yoast/whip/tests/MessagesManagerTest.php  
  1. class MessagesManagerTest extends PHPUnit_Framework_TestCase { 
  2. public function testHasMessages() { 
  3. $manager = new Whip_MessagesManager(); 
  4.  
  5. $this->assertFalse( $manager->hasMessages() ); 
  6.  
  7. $GLOBALS['whip_messages'][] = 'I am a test message'; 
  8.  
  9. $this->assertTrue( $manager->hasMessages() ); 
  10.