Updated DingoAPI to .7
Rename component.component to component_id with relationship name change Rename more instances of parent to component Working on Incident Repository Fix Incident seeder component_id is fillable within the model Fix bad relationship Finished Incident repository Added Metric repository Updated tests for new dingo release
This commit is contained in:
committed by
James Brooks
parent
692d2fc0fe
commit
b2e1d2750c
@@ -14,7 +14,7 @@ class ComponentControllerTest extends TestCase {
|
||||
public function test_get_components_method() {
|
||||
$this->repo->shouldReceive('all')->once()->andReturn('foo');
|
||||
|
||||
$controller = new CachetHQ\Cachet\Controllers\Api\ComponentController($this->dingo, $this->repo);
|
||||
$controller = new CachetHQ\Cachet\Controllers\Api\ComponentController($this->repo);
|
||||
$response = $controller->getComponents();
|
||||
|
||||
$this->assertEquals('foo', $response);
|
||||
@@ -23,9 +23,10 @@ class ComponentControllerTest extends TestCase {
|
||||
public function test_get_component_method() {
|
||||
$this->repo->shouldReceive('findOrFail')->with(1)->once()->andReturn('foo');
|
||||
|
||||
$controller = new CachetHQ\Cachet\Controllers\Api\ComponentController($this->dingo, $this->repo);
|
||||
$controller = new CachetHQ\Cachet\Controllers\Api\ComponentController($this->repo);
|
||||
$response = $controller->getComponent(1);
|
||||
|
||||
$this->assertEquals('foo', $response);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user