Skip to content

Commit

Permalink
improved model manager test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrián Pardellas Blunier committed Feb 9, 2016
1 parent 9b07537 commit 7eb2a8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Manager/ModelManagerTest.php
Expand Up @@ -31,7 +31,7 @@ public function test_throws_exception_when_not_eloquent_model()
{
$this->setExpectedException(\Exception::class);

$this->sut->getModelInstance('Database\Tests\Models\Repositories\PostRepository');
$this->sut->getModelInstance('Database\Tests\Models\WrongModel');
}

public function test_returns_model_default_repository()
Expand Down
8 changes: 8 additions & 0 deletions tests/Models/WrongModel.php
@@ -0,0 +1,8 @@
<?php
namespace Database\Tests\Models;


class WrongModel
{

}

0 comments on commit 7eb2a8b

Please sign in to comment.