Rename vars

This commit is contained in:
James Brooks
2015-06-02 19:47:20 +01:00
parent 4245b95406
commit f94a5ec57b

View File

@@ -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);