Commit Graph

49 Commits

Author SHA1 Message Date
HDVinnie 4e2e41a628 tests: update application controller test 2020-03-11 10:08:12 -04:00
Ben Johnson 960d6eab89 tests: Add ForumController tests 2020-03-05 21:32:21 -05:00
Ben Johnson 9e7b98aa93 tests: Add ForumCategoryController tests 2020-03-05 09:50:05 -05:00
Ben Johnson b9aa73c31c tests: Add FollowController tests 2020-03-04 10:49:33 -05:00
Ben Johnson 1382c1fc36 tests: Add ContactController tests 2020-03-04 08:17:40 -05:00
HDVinnie b5c0471576 tests: staff mass action controller 2020-03-03 11:33:17 -05:00
Ben Johnson e22ffc1d07 tests: Add CommentController tests 2020-03-03 09:53:36 -05:00
Ben Johnson e80eef5ae1 tests: Add tests for Bookmark and Category controllers 2020-02-29 10:50:43 -05:00
Ben Johnson 57212ca263 tests: Add BonusController tests 2020-02-28 10:57:28 -05:00
Ben Johnson 73bee5a9b3 tests: Add Announce and Article controller tests 2020-02-27 14:40:51 -05:00
Ben Johnson a7c15f0d99 tests: Add tests for Achievements and Album controllers 2020-02-26 20:40:58 -05:00
HDVinnie 872288cc61 tests: staff controllers 2020-02-26 12:21:30 -05:00
HDVinnie 4c2fce6e91 Merge branch 'master' into development 2020-02-25 19:34:27 -05:00
Ben Johnson 6b172b051d tests: Auth controller tests 2020-02-25 16:57:11 -05:00
HDVinnie 62f8d60194 tests: console commands 2020-02-25 15:35:46 -05:00
HDVinnie 9c85e8f029 tests: console commands 2020-02-25 13:03:55 -05:00
HDVinnie ad3ec8de19 tests: console commands 2020-02-25 13:01:48 -05:00
HDVinnie 238482d18d tests: staff controllers 2020-02-25 09:29:48 -05:00
HDVinnie da18feac5a Merge pull request #1174 from cbj4074/torrent-controller-tests
tests: Implement TorrentController API tests
2020-02-24 16:17:55 -05:00
Ben Johnson aa32a893fa tests: Implement TorrentController API tests
As part of this effort, a dedicated "torrents" storage location was
added to filesystems.php, which affects the torrent file storage
location. Accordingly, the torrent files in existing installations will
need to be moved (or symlinked) upon upgrade. The primary reason for
this change is mentioned in the Laravel docs: "This convention will
keep your publicly accessible files in one directory that can be easily
shared across deployments when using zero down-time deployment systems
like Envoyer."
2020-02-24 15:24:50 -05:00
HDVinnie 05cc5a6cc6 tests: fix build 2020-02-24 13:57:29 -05:00
HDVinnie b0cfe365c6 tests: staff controllers 2020-02-24 12:23:46 -05:00
Ben Johnson b025e27b3e tests: Delete conflicting DemoFactory
This factory was causing unexpected behavior with the UserFactory;
basically, this factory was taking precedence whenever
factory(User::class) was called.

Oddly, this factory was effective only in the Travis-CI environment and
not anybody's respective local environment. Presumably, some nuance
with the filesystem coupled with Composer's autoloader affects the
order in which the respective factories are registered in different
environments.

In any case, this factory is no longer useful and is hereby deleted,
which fixes a handful of test methods that heretofore had to be marked
as incomplete.
2020-02-23 20:20:01 -05:00
HDVinnie 54e74762d5 tests: chat bot controller 2020-02-23 16:31:26 -05:00
Ben Johnson 5b9213d804 tests: Style fix 2020-02-23 12:19:18 -05:00
Ben Johnson c345755219 tests: Set group properties explicitly within test
As in previous commit.
2020-02-23 12:16:22 -05:00
Ben Johnson dea62a7b1d tests: Style tweaks and revert default factory values 2020-02-23 10:35:40 -05:00
Ben Johnson 3673c0d82e tests: A couple of small tweaks to ArticleControllerTest 2020-02-23 10:32:30 -05:00
HDVinnie 43b3c133be tests: add setUp function 2020-02-22 23:53:04 -05:00
HDVinnie da5229b9cb chore: styleci 2020-02-22 23:32:16 -05:00
HDVinnie d5c5835e42 tests: staff controllers 2020-02-22 23:26:54 -05:00
Ben Johnson a6f606ed9f tests: Improve several tests 2020-02-21 17:51:22 -05:00
Ben Johnson 13cdfe1f6b tests: Fix incorrect ID reference 2020-02-20 17:12:23 -05:00
Ben Johnson 362ce3b37a style: Style-CI fixes 2020-02-20 16:43:03 -05:00
Ben Johnson 5db70a9ea8 tests: Flesh-out several more ChatController tests 2020-02-20 16:38:43 -05:00
Ben Johnson 9ccdfbb9c1 tests: Improve HomeController test and add new one for 2FA 2020-02-20 12:13:17 -05:00
Ben Johnson 837d84c82a tests: Add a couple more tests 2020-02-19 22:08:19 -05:00
Ben Johnson 1cd88b8430 tests: Add tests for a couple of ChatController methods 2020-02-18 19:50:52 -05:00
Ben Johnson 38d8b3cf79 feat: Reduce test suite execution time considerably
Given the sheer volume of migrations, it takes about 40 seconds on an average system to execute them all prior to running the test suite.

Loading one flat SQL file instead of executing each migration reduces this overhead significantly.

This is implemented in a way that degrades gracefully; if the flat file is not specified, all migrations will run as normal.
2020-02-18 15:45:54 -05:00
Ben Johnson 65d602f058 tests: Move scaffolded tests into Todo directory
Currently, the test suite requires way longer than necessary because it runs all the scaffolded tests, even though they exit immediately.

Moving them until they are implemented will speed-up the test suite execution time dramatically.
2020-02-17 15:56:39 -05:00
HDVinnie 9cf874de7a update: poll system 2020-02-16 17:05:17 -05:00
Ben Johnson b2550bb71c tests: Add bare-minimum testing configuration 2020-02-14 15:00:18 -05:00
HDVinnie 987bed7a7b Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-13 21:45:47 +00:00
Laravel Shift d5aa4b9ea1 Generate unit tests for console commands 2020-01-22 17:19:03 +00:00
Laravel Shift d7719da7ac Generate unit tests for form requests 2020-01-22 17:19:02 +00:00
Laravel Shift daa7cad1b4 Generate HTTP tests for controllers 2020-01-22 17:19:02 +00:00
Laravel Shift a2df254cb7 Include helpful testing package
Shift added the following packages which may be used by some of the generated tests cases and helpful for testing new code.

- [Test Assertions](https://github.com/jasonmccreary/laravel-test-assertions)
- [`generate:model-factory`](https://github.com/mpociot/laravel-test-factory-helper)
2020-01-22 17:18:59 +00:00
HDVinnie f19899caab (Update) Code Style 🚀
- php-cs-fixer
2019-09-17 18:48:44 -04:00
HDVinnie a96f116c0c (Add) Laravel Default Tests 🆕 2019-09-17 18:40:16 -04:00