Use annotation
This commit is contained in:
@@ -23,9 +23,11 @@ class ComponentTest extends AbstractTestCase
|
|||||||
$this->get('/api/v1/components')->seeJson(['data' => []]);
|
$this->get('/api/v1/components')->seeJson(['data' => []]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException \Illuminate\Database\Eloquent\ModelNotFoundException
|
||||||
|
*/
|
||||||
public function testGetInvalidComponent()
|
public function testGetInvalidComponent()
|
||||||
{
|
{
|
||||||
$this->setExpectedException('Illuminate\Database\Eloquent\ModelNotFoundException');
|
|
||||||
$this->get('/api/v1/components/1');
|
$this->get('/api/v1/components/1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user