Skip to content
Permalink
Browse files

Add tests for setting the default model

  • Loading branch information...
josegonzalez authored and markstory committed May 1, 2016
1 parent 271f572 commit 3305f34ac3dc92eaa0cc3aae8a87bed8a833726b
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/TestCase/View/Helper/PaginatorHelperTest.php
@@ -2253,6 +2253,12 @@ public function testNoDefaultModel()
{
$this->Paginator->request = new Request();
$this->assertNull($this->Paginator->defaultModel());
$this->Paginator->defaultModel('Article');
$this->assertEquals('Article', $this->Paginator->defaultModel());
$this->Paginator->options(['model' => 'Client']);
$this->assertEquals('Client', $this->Paginator->defaultModel());
}
/**

0 comments on commit 3305f34

Please sign in to comment.
You can’t perform that action at this time.