Allow component groups to be collapsed by default. Closes #1398

This commit is contained in:
James Brooks
2016-01-29 16:02:14 +00:00
parent d907d1eecc
commit da7af1fca0
16 changed files with 141 additions and 34 deletions
+4 -3
View File
@@ -56,10 +56,11 @@ class ComponentGroupTest extends AbstractApiTestCase
$this->beUser();
$this->post('/api/v1/components/groups', [
'name' => 'Foo',
'order' => 1,
'name' => 'Foo',
'order' => 1,
'collapsed' => true,
]);
$this->seeJson(['name' => 'Foo']);
$this->seeJson(['name' => 'Foo', 'order' => 1, 'collapsed' => true]);
$this->assertResponseOk();
}