12 Commits

Author SHA1 Message Date
James Brooks
134e624e9e Extend BrowserKitTesting TestCase class 2017-06-25 10:44:31 +01:00
James Brooks
8a5ac722cd Fix docblock 2017-02-06 20:20:55 +00:00
James Brooks
ebf3c8656f Fix model validations 2016-10-19 12:29:22 +01:00
Marius Palade
ad0954eb20 Add visibility to component groups (#2027)
Implement visibility for the components groups. Closes #1892

Add functional test that asserts a guest can only see public items.

* Fix tests not running due to hitting the Setup page.

The missing `boostrap/cachet/testing.php` file is now generated the first time tests are ran.

* Add a functional test that asserts logged in users can see all items.

Add constants for possible values for the visible column/field of the ComponentGroup model.
Code review changes.

* Add API tests for component group visibility feature.

* Implement the visibility hidden option for a component group. Fixes #1892.

Add migration for the created_by column, in component_groups table.
Add methods to the ComponentGroup and User models to be able to work with the created_by column.
Hidden component groups are no longer displayed on the index page for loggedin users.
Add functional test for the dashboard page.
Save owner on create/edit component group.
Update the API tests for Component group visibility feature.

* Replace auth() usage with app(Guard::class).

* Apply StyleCI fixes.

* Drop the hidden visibility feature and fix all tests.

Some code review fixes too.

* Rename public to visible since it's a reserved keyword. Apply StyleCI fixes and correct typo.

* Code review changes.

* Tidy up component and component groups gathering.

* Code review changes and StyleCI fixes.

* Code review changes.

* Remove extra whitespace

* Remove useless method.
2016-10-02 13:57:32 +01:00
Graham Campbell
19e3804227 Updated tests 2015-12-06 11:04:02 +00:00
Graham Campbell
0a321bffd8 Updated copyright information 2015-07-06 17:37:01 +01:00
James Brooks
fafcc8880b Fix CS 2015-07-02 16:46:14 +01:00
Graham Campbell
7db305edcc Cleanup tests 2015-06-24 20:16:46 +01:00
James Brooks
9d879b162e Fix code standards, update language files. 2015-06-16 09:07:49 +01:00
James Brooks
f06e9cc88f Move beUser into Abstract class 2015-06-02 13:42:39 +01:00
Graham Campbell
049b9ac308 Fixed tests 2015-06-01 22:25:34 +01:00
James Brooks
7b3f6fee26 Started working on a test suite
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-05-28 18:21:39 +01:00