Rename vars
This commit is contained in:
@@ -62,16 +62,16 @@ class ComponentTest extends AbstractTestCase
|
|||||||
|
|
||||||
public function testGetNewComponent()
|
public function testGetNewComponent()
|
||||||
{
|
{
|
||||||
$incident = factory('CachetHQ\Cachet\Models\Component')->create();
|
$component = factory('CachetHQ\Cachet\Models\Component')->create();
|
||||||
|
|
||||||
$this->get('/api/v1/components/1');
|
$this->get('/api/v1/components/1');
|
||||||
$this->seeJson(['name' => $incident->name]);
|
$this->seeJson(['name' => $component->name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testPutComponent()
|
public function testPutComponent()
|
||||||
{
|
{
|
||||||
$this->beUser();
|
$this->beUser();
|
||||||
$incident = factory('CachetHQ\Cachet\Models\Component')->create();
|
$component = factory('CachetHQ\Cachet\Models\Component')->create();
|
||||||
|
|
||||||
$this->put('/api/v1/components/1', [
|
$this->put('/api/v1/components/1', [
|
||||||
'name' => 'Foo',
|
'name' => 'Foo',
|
||||||
@@ -82,7 +82,7 @@ class ComponentTest extends AbstractTestCase
|
|||||||
public function testDeleteComponent()
|
public function testDeleteComponent()
|
||||||
{
|
{
|
||||||
$this->beUser();
|
$this->beUser();
|
||||||
$incident = factory('CachetHQ\Cachet\Models\Component')->create();
|
$component = factory('CachetHQ\Cachet\Models\Component')->create();
|
||||||
|
|
||||||
$this->delete('/api/v1/components/1');
|
$this->delete('/api/v1/components/1');
|
||||||
$this->assertResponseStatus(204);
|
$this->assertResponseStatus(204);
|
||||||
|
|||||||
Reference in New Issue
Block a user