Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3ac7492858
commit
bdb3619bc9
@@ -40,8 +40,8 @@ class ComponentTest extends AbstractApiTestCase
|
||||
public function test_can_get_all_components_with_tags()
|
||||
{
|
||||
$components = factory(Component::class, 2)->create();
|
||||
$components[0]->attachTags(["Hello World"]);
|
||||
$components[1]->attachTags(["Foo", "Bar"]);
|
||||
$components[0]->attachTags(['Hello World']);
|
||||
$components[1]->attachTags(['Foo', 'Bar']);
|
||||
|
||||
$response = $this->json('GET', '/api/v1/components', ['tags' => ['foo']]);
|
||||
|
||||
@@ -235,14 +235,13 @@ class ComponentTest extends AbstractApiTestCase
|
||||
|
||||
$response = $this->json('PUT', '/api/v1/components/1', [
|
||||
'name' => 'Foo',
|
||||
'tags' => 'Hello'
|
||||
'tags' => 'Hello',
|
||||
]);
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertJsonFragment(['name' => 'Foo', 'enabled' => $component->enabled, 'tags' => ['hello' => 'Hello']]);
|
||||
}
|
||||
|
||||
|
||||
public function test_can_update_component_without_status_change()
|
||||
{
|
||||
$this->beUser();
|
||||
|
||||
Reference in New Issue
Block a user