Use annotation

This commit is contained in:
Graham Campbell
2015-06-01 22:03:23 +01:00
parent d3d744780d
commit 0c065ae690

View File

@@ -23,9 +23,11 @@ class ComponentTest extends AbstractTestCase
$this->get('/api/v1/components')->seeJson(['data' => []]);
}
/**
* @expectedException \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function testGetInvalidComponent()
{
$this->setExpectedException('Illuminate\Database\Eloquent\ModelNotFoundException');
$this->get('/api/v1/components/1');
}