Marcus Moore
bc54144284
Fix test by passing proper user
2023-03-06 12:40:47 -08:00
Marcus Moore
e8da6d8bac
Set purchase date in correct format
2023-03-02 13:47:58 -08:00
Marcus Moore
45d7e9b134
Switch to using LazilyRefreshDatabase in unit test suite
2023-03-02 13:13:30 -08:00
Marcus Moore
75fc624ec6
Globally disable SecurityHeaders in tests
2023-03-02 13:12:25 -08:00
Marcus Moore
589a5d0d8b
Merge branch 'develop' into fix/test-suite
2023-02-28 09:48:48 -08:00
snipe
eb6357636a
Merge pull request #12467 from marcusmoore/fix/scope-people-with-full-multiple-companies
...
Fix full company scoping in user selects
2023-02-23 10:36:33 -08:00
Marcus Moore
4f9ebf6cde
Fix array key
2023-02-07 16:40:27 -08:00
Marcus Moore
787f619a6b
Standardize test method syntax
2023-02-07 16:28:40 -08:00
Marcus Moore
505ca48da2
Remove test method without assertions
2023-02-07 16:17:36 -08:00
Marcus Moore
6b8c0f9e88
Make BaseTest abstract
2023-02-07 16:17:16 -08:00
Marcus Moore
6dbcec2310
Exclude Dusk tests from phpunit test suite
2023-02-07 16:16:39 -08:00
Marcus Moore
c03079944a
Be more explicit in test case
2023-02-06 16:06:13 -08:00
Marcus Moore
9a0c66bd30
Clear some extra lines
2023-02-02 18:30:18 -08:00
Marcus Moore
d8e92d29c0
Improve readability
2023-02-02 18:25:54 -08:00
Marcus Moore
93a62c87c2
Implement test for searching users
2023-02-02 17:57:24 -08:00
Marcus Moore
89eff23e44
Continue implementing tests
2023-02-02 17:41:32 -08:00
Marcus Moore
a2e47d19fc
Scaffold tests for user select list api and begin to implemenet
2023-02-02 13:47:00 -08:00
Marcus Moore
bc0f666906
Create Setting in test to avoid being redirected to the setup screen
2023-01-10 17:03:09 -08:00
Marcus Moore
581655f756
Run database migrations for all Dusk tests
2023-01-10 17:02:11 -08:00
Chris Hartjes
07585809b3
Got unit and browser tests working, added documentation
2022-08-12 13:00:26 -04:00
snipe
e7541f29d2
Use php artisan serve url
...
Signed-off-by: snipe <snipe@snipe.net>
2022-01-18 14:50:24 -08:00
snipe
66ed311914
Fixed asset maintenances test
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 20:14:39 -08:00
snipe
f334bf1058
Fixed notification tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 20:01:03 -08:00
snipe
0104f35f31
Fixed Component Test, commented Consumables
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 19:43:15 -08:00
snipe
222ee8e0bf
Slight refactor on depreciation test
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 19:36:07 -08:00
snipe
0e3bafd5b4
Fixed depreciation tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 19:19:42 -08:00
snipe
17bc562ac4
Commented out broken permissions and importer tests for now
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 19:19:35 -08:00
snipe
1e46fde5e2
Fixed status labels tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 19:01:57 -08:00
snipe
872bd29cb3
Removed repetitive tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 18:27:52 -08:00
snipe
21e2504f79
Trying unsuccessfully to get nested factories working
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 17:38:28 -08:00
snipe
5a01fff79c
Use the Setting model for basetest
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 17:37:51 -08:00
snipe
390e8a6cc3
Fixed company unit test
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 16:43:03 -08:00
snipe
b0d2fc787a
Fixed accessory test
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 16:33:16 -08:00
snipe
35ba28bff9
Continuing to refactor tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 16:14:45 -08:00
snipe
c2709be4a1
Removed pointless tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 16:14:23 -08:00
snipe
c949a1f5f2
renamed Tests to tests
2021-12-02 15:08:26 -08:00
snipe
5555553307
renamed again for git to accept case
2021-12-02 14:02:16 -08:00
snipe
00b63fe7c7
Fixed category factory methods
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 13:40:16 -08:00
snipe
ed2797afdd
Small fixes
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-01 23:33:20 -08:00
snipe
17bd6d71e7
Fixed location unit test
...
Signed-off-by: snipe <snipe@snipe.net>
2021-12-01 22:45:39 -08:00
snipe
bc355e1f26
Remve unused use Hash statements
...
Signed-off-by: snipe <snipe@snipe.net>
2021-11-30 20:47:02 -08:00
snipe
d8234d5a0b
Trying to unfuck the TestCase
...
A lot has changed between versions
Signed-off-by: snipe <snipe@snipe.net>
2021-11-30 20:46:44 -08:00
snipe
e73373a75a
Removed empty tests
...
Signed-off-by: snipe <snipe@snipe.net>
2021-11-30 20:45:42 -08:00
snipe
d08c1787a1
First steps at getting dusk working
...
Signed-off-by: snipe <snipe@snipe.net>
2021-11-30 20:09:29 -08:00
snipe
61f16f47a2
Use Helper alias
...
Signed-off-by: snipe <snipe@snipe.net>
2021-09-28 19:44:55 -07:00
Laravel Shift
b62d1f49e4
Shift cleanup
2021-06-10 20:19:27 +00:00
Laravel Shift
8b82262777
Shift return type of base TestCase methods
...
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:
- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`
[1]: https://phpunit.de/announcements/phpunit-8.html
2021-06-10 20:18:12 +00:00
Laravel Shift
104b441e0d
Shift to class based factories
2021-06-10 20:17:44 +00:00
Laravel Shift
802dc9240d
Shift bindings
...
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
2021-06-10 20:16:56 +00:00
Laravel Shift
934afa036f
Adopt Laravel coding style
...
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.
You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.
[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
2021-06-10 20:15:52 +00:00