diff --git a/app/tests/Controllers/Api/ComponentControllerTest.php b/app/tests/Controllers/Api/ComponentControllerTest.php index c45e52ee..55a4c0d2 100644 --- a/app/tests/Controllers/Api/ComponentControllerTest.php +++ b/app/tests/Controllers/Api/ComponentControllerTest.php @@ -11,23 +11,21 @@ class ComponentControllerTest extends TestCase { Mockery::close(); } - public function test_get_components_method() - { + public function test_get_components_method() { $this->repo->shouldReceive('all')->once()->andReturn('foo'); $controller = new CachetHQ\Cachet\Controllers\Api\ComponentController($this->dingo, $this->repo); $response = $controller->getComponents(); - + $this->assertEquals('foo', $response); } - public function test_get_component_method() - { + 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); $response = $controller->getComponent(1); - + $this->assertEquals('foo', $response); } -} \ No newline at end of file +}