Fixed tests

This commit is contained in:
Graham Campbell
2015-06-01 22:25:34 +01:00
parent 0c065ae690
commit 049b9ac308
4 changed files with 26 additions and 292 deletions

View File

@@ -21,18 +21,18 @@ class ComponentTest extends AbstractTestCase
public function testGetComponents()
{
$this->get('/api/v1/components')->seeJson(['data' => []]);
$this->assertResponseOk();
}
/**
* @expectedException \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function testGetInvalidComponent()
{
$this->get('/api/v1/components/1');
$this->assertResponseStatus(404);
}
/*public function testPostComponentUnauthorized()
public function testPostComponentUnauthorized()
{
$this->post('/api/v1/components')->seeJson(['data']);
}*/
$this->post('/api/v1/components');
$this->assertResponseStatus(401);
}
}