Skip to content

Commit

Permalink
Ajusting
Browse files Browse the repository at this point in the history
  • Loading branch information
diegobittencourt committed Feb 10, 2014
1 parent 1ababe0 commit a30c9b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ZendTest/View/Helper/FlashMessengerTest.php
Expand Up @@ -111,10 +111,10 @@ public function testCanRetrieveCurrentMessages()
$this->assertTrue(count($helper('success')) > 0);
$this->assertTrue(count($helper('error')) > 0);

$this->assertTrue($this->plugin->hasCurrentMessages());
$this->assertTrue($this->plugin->hasCurrentInfoMessages());
$this->assertTrue($this->plugin->hasCurrentSuccessMessages());
$this->assertTrue($this->plugin->hasCurrentErrorMessages());
$this->assertFalse($this->plugin->hasCurrentMessages());
$this->assertFalse($this->plugin->hasCurrentInfoMessages());
$this->assertFalse($this->plugin->hasCurrentSuccessMessages());
$this->assertFalse($this->plugin->hasCurrentErrorMessages());
}

public function testCanProxyAndRetrieveMessagesFromPluginController()
Expand Down

1 comment on commit a30c9b7

@diegobittencourt
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I adjusted all the problems and everything was accepted, but left me a question regarding the last commit:

It was so

  • $ This-> assertTrue ($ this-> plugin-> hasCurrentMessages ());
  • $ This-> assertTrue ($ this-> plugin-> hasCurrentInfoMessages ());
  • $ This-> assertTrue ($ this-> plugin-> hasCurrentSuccessMessages ());
  • $ This-> assertTrue ($ this-> plugin-> hasCurrentErrorMessages ());

And was

  • $ This-> assertFalse ($ this-> plugin-> hasCurrentMessages ());
  • $ This-> assertFalse ($ this-> plugin-> hasCurrentInfoMessages ());
  • $ This-> assertFalse ($ this-> plugin-> hasCurrentSuccessMessages ());
  • $ This-> assertFalse ($ this-> plugin-> hasCurrentErrorMessages ());

hasCurrentMessages is not available in plugin? Is that correct? My knowledge in zend framework is still small, I got doubts.

Please sign in to comment.