No trailing spaces and braces on new line

This commit is contained in:
James Brooks
2014-11-27 22:05:38 +00:00
parent c967ad9dd5
commit 18403aaa81

View File

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