Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
levidurfee committed Nov 30, 2018
1 parent ef354fc commit bbe6abd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/IdTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,13 @@ public function testUsingSetPrefixMethod()
$this->assertFalse($result);
}
}

public function testIncrementalId()
{
$iId = new \Bulldog\id\IncrementalId;

$id = $iId->create(4, 'dog', 9);
$this->assertEquals('NAZG9nOQ', $id);
$this->assertEquals('NAZG', $iId->get(4));
}
}

0 comments on commit bbe6abd

Please sign in to comment.