Skip to content

Commit

Permalink
Update NotifierComponentTest.php
Browse files Browse the repository at this point in the history
Updating test cases to accept array as 3rd parameter with 'limit' as only key support at the moment
  • Loading branch information
akkaweb committed Mar 24, 2016
1 parent 2480649 commit 15f325c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Controller/Component/NotifierComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function testGetNotifications()
$this->assertEquals(2, count($this->Notifier->getNotifications(2)));
$this->assertEquals(0, count($this->Notifier->getNotifications(2, true)));
$this->assertEquals(2, count($this->Notifier->getNotifications(2, false)));
$this->assertEquals(1, count($this->Notifier->getNotifications(1, true, 1)));
$this->assertEquals(2, count($this->Notifier->getNotifications(2, false, 3)));
$this->assertEquals(1, count($this->Notifier->getNotifications(1, true, ['limit' => 1])));
$this->assertEquals(2, count($this->Notifier->getNotifications(2, false, ['limit' => 3])));
}

public function testMarkAsReadWithAuth()
Expand Down

0 comments on commit 15f325c

Please sign in to comment.