Skip to content

Commit

Permalink
Merge pull request #24 from scottrobertson/tests
Browse files Browse the repository at this point in the history
Add integer test
  • Loading branch information
scottrobertson committed Apr 28, 2014
2 parents 1b647ec + 2689caa commit 06a674e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/FactoryMuffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ public function test_date_kind_with_date()
$this->assertEquals($obj->created, date('Ymd h:s'));
}

public function test_integer()
{
$this->factory->define('SampleModelA', array(
'number' => 'integer|100',
));

$obj = $this->factory->create('SampleModelA');
$this->assertEquals(100, strlen($obj->number));
}

public function test_should_create()
{
$obj = $this->factory->create('SampleModelA');
Expand Down

0 comments on commit 06a674e

Please sign in to comment.