No trailing spaces and braces on new line
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user