Skip to content

Commit

Permalink
Add ModelTest::testWhereMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Jul 21, 2018
1 parent 84bb236 commit 2187afb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,16 @@ public function testValidateMethod()

$this->assertEquals($expected, (array) $result);
}

/**
* Tests Model::where.
*
* @return void
*/
public function testWhereMethod()
{
$this->ci->post->where('description', 'hdcgXrOKUD');

$this->assertCount(1, $this->ci->post->get());
}
}

0 comments on commit 2187afb

Please sign in to comment.