Skip to content

Commit

Permalink
Update laravel 4 store test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljennings committed Dec 1, 2015
1 parent 78a490f commit 2719650
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Store/Laravel4StoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ public function testCountReturnsTotalResults()
$this->assertEquals(0, $store->count());
}

/**
* @expectedException \Michaeljennings\Carpenter\Exceptions\ModelNotSetException
*/
public function testExceptionIsThrownIfCountIsCalledBeforeModelIsSet()
{
$store = $this->makeStore();

$store->count();
}

public function makeStore()
{
return new Eloquent();
Expand Down

0 comments on commit 2719650

Please sign in to comment.