Commit Graph

553 Commits

Author SHA1 Message Date
Pig Fang
5915b3ec17 Reimplementing closet 2019-03-14 23:55:49 +08:00
Pig Fang
c4d26a4c10 Simplify tests 2019-03-14 00:30:53 +08:00
Pig Fang
acacd09253 Fix cleaning up 2019-03-14 00:13:32 +08:00
Pig Fang
d45d287d93 Optimize testing 2019-03-14 00:02:00 +08:00
Pig Fang
ceac906771 Rename column player_name to name 2019-03-13 13:16:51 +08:00
Pig Fang
cd2711942e Enforce to use tid_skin 2019-03-13 11:24:04 +08:00
Pig Fang
69b6d3685d Remove feedback 2019-03-12 20:51:46 +08:00
Pig Fang
5332589b65 Use Laravel's built-in updater 2019-03-02 23:47:51 +08:00
Pig Fang
3cf19d8656
Apply fixes from StyleCI (#11)
This pull request applies code style fixes from an analysis carried out by [StyleCI](https://github.styleci.io).

---

For more information, click [here](https://github.styleci.io/analyses/8wKwbZ).
2019-03-02 22:58:37 +08:00
Haowei Wen
23deb5c46f
Polish TextureControllerTest
See https://github.com/bs-community/blessing-skin-server/pull/8#discussion_r261825089
2019-03-02 21:54:31 +08:00
Pig Fang
1ff8e631fe
Remove settings of preference (#8)
Resolve #6
2019-03-02 21:13:17 +08:00
Pig Fang
e528547b89
Laravel 5.8 (#5) 2019-02-27 23:44:50 +08:00
Pig Fang
6d93a78d22 fix: check tables if it's existed when db is connected 2019-02-18 17:15:14 +08:00
Pig Fang
9386992fde
fix test finally (#4)
* comment out a test

* set an option
2019-02-17 21:23:07 +08:00
Pig Fang
0d4f34770e fix tests 2019-02-17 20:12:42 +08:00
Pig Fang
9e05b7c843 fix test 2019-02-17 10:23:25 +08:00
Pig Fang
1fe1aab59c update test 2019-02-17 09:51:33 +08:00
Pig Fang
4bd1367d9e update php deps 2019-02-16 21:12:06 +08:00
Pig Fang
86397a6641 Fix risky tests 2018-11-25 14:32:14 +08:00
Pig Fang
1e120d3ec7 Fix reading .env file 2018-10-19 21:43:25 +08:00
Pig Fang
e69b8758e3 Fix tests 2018-09-06 19:31:35 +08:00
Pig Fang
1a079c90c4 Upgrade to Laravel 5.7 2018-09-06 16:26:03 +08:00
Pig Fang
0c82cd3950 Set model preference to slim when applying slim skin to new players 2018-08-21 14:47:37 +08:00
Pig Fang
7ec7eb2467 Fix big offset for Hook::addMenuItem 2018-08-21 14:43:46 +08:00
Pig Fang
e66a112713 Fix test 2018-08-21 11:14:22 +08:00
Pig Fang
6eac8cf2c7 Restrict PluginController access to super admin only 2018-08-21 09:05:29 +08:00
printempw
e6d35dd400 Update translations 2018-08-20 22:39:14 +08:00
Pig Fang
4e10159781 Fix cleaning up 2018-08-19 18:38:05 +08:00
Pig Fang
cf03da0a2e Update tests 2018-08-19 18:28:38 +08:00
Pig Fang
e6e989281c Fix tests 2018-08-19 17:54:00 +08:00
Pig Fang
f6d022c377 Add plugins management page 2018-08-19 17:39:33 +08:00
Pig Fang
6b4812b251 Add plugin marketplace 2018-08-19 11:39:14 +08:00
printempw
f25fdad9dc Fix test of getting plugin data 2018-08-18 09:58:03 +08:00
Pig Fang
37bdaceeb9 Fix tests 2018-08-18 09:48:39 +08:00
Pig Fang
ad32b718eb Use guzzle to download update packages 2018-08-17 23:24:08 +08:00
Pig Fang
2305a80102 Remove Utils class 2018-08-17 22:54:26 +08:00
Pig Fang
4a72442fdb Add a option for requiring player name when register 2018-08-17 17:03:38 +08:00
Pig Fang
939d71923b Enhance rate limit for sending password reset email 2018-08-17 16:07:24 +08:00
Pig Fang
0ef92a5565 Update tests and composer autoload 2018-08-17 15:25:08 +08:00
Pig Fang
3bf29b529d Update tests 2018-08-17 14:44:22 +08:00
Pig Fang
b5468cc143 Support email verification 2018-08-17 12:32:44 +08:00
Pig Fang
706ca1938b Update mail template of password reset 2018-08-16 18:10:09 +08:00
Pig Fang
40deffb3b9 Limit login attempts by IP address 2018-08-16 17:57:24 +08:00
Pig Fang
bf8ec12645 Support changing texture model from skinlib 2018-08-16 17:42:54 +08:00
Pig Fang
190e54578a Add index page of skin library 2018-08-14 23:27:36 +08:00
Pig Fang
7e4ae5381b Use server side table 2018-08-13 11:08:14 +08:00
Pig Fang
b3876468b2 Fix validating captcha 2018-08-12 16:00:21 +08:00
Pig Fang
a9e4827e32 Fix test 2018-08-12 10:01:13 +08:00
Pig Fang
d566c3bc31 Fix test 2018-08-09 17:36:19 +08:00
Pig Fang
f0e177d62d Add user dashboard page 2018-08-08 09:50:35 +08:00
Pig Fang
5788fb93c1 Disallow to delete administrator 2018-08-02 10:21:25 +08:00
Pig Fang
7b000bcab0 Add method for retrieving all players 2018-07-30 15:45:08 +08:00
Pig Fang
6102d27530 Support retrieving avatar by tid 2018-07-30 15:18:33 +08:00
Pig Fang
148b6f6cc5 Apply two new middlewares 2018-07-24 09:58:10 +08:00
Pig Fang
c3934702e0 Update test 2018-07-23 10:11:04 +08:00
Pig Fang
35832a6993 Add Mailable test 2018-07-23 09:33:55 +08:00
Pig Fang
5e3e2bf688 Return 204 instead of 200 for CDN cache 2018-07-22 16:42:58 +08:00
Pig Fang
e60d73b410 Remove bs_announcement function and parsedown 2018-07-22 16:32:34 +08:00
Pig Fang
60996020f4 Fix test 2018-07-22 10:50:01 +08:00
Pig Fang
9700bf11e3 Fix test 2018-07-22 10:34:24 +08:00
Pig Fang
11b6078c57 Add error control for retrieving textures 2018-07-22 10:00:30 +08:00
Pig Fang
10a0cd09db Add option for denying directly downloading textures 2018-07-22 09:38:42 +08:00
Pig Fang
0233e44ccd Add a setup step to fill database info 2018-07-21 16:55:36 +08:00
Pig Fang
8bd60624a0 Fix validating captcha 2018-07-21 08:17:16 +08:00
Pig Fang
0ded695295 Nickname is required in setup 2018-07-20 17:23:54 +08:00
Pig Fang
5b1667d798 Add regexp rule support for texture name 2018-07-20 15:41:15 +08:00
Pig Fang
fdf618b2be Use Laravel's auth system and use another captcha generator 2018-07-20 14:42:43 +08:00
Pig Fang
24b2107c48 Fix processing cookies after deleting user 2018-07-19 10:46:01 +08:00
Pig Fang
fa1c780786 Rename method on User model 2018-07-19 10:31:44 +08:00
Pig Fang
3c24a166e8 Use signed URL to simplify resetting password 2018-07-18 11:04:34 +08:00
Pig Fang
556f8268f3 optimize for loop in test 2018-07-16 16:01:58 +08:00
Pig Fang
29c004da9c fix test 2018-07-16 11:54:42 +08:00
Pig Fang
9cd6e0945d booleanify public property 2018-07-16 11:10:01 +08:00
Pig Fang
0f7d44a2c9 refactor tests 2018-07-16 10:22:19 +08:00
Pig Fang
a53743862f fix risky test 2018-07-15 18:34:38 +08:00
Pig Fang
590f62d035 use mail.driver to determine whether password reset is disabled 2018-07-15 18:18:56 +08:00
Pig Fang
209d74ab7a use mailable 2018-07-15 17:42:03 +08:00
Pig Fang
aa00c65a7a hack for test 2018-07-14 15:44:52 +08:00
Pig Fang
65f1596eae fix test of SkinlibController 2018-07-14 15:03:05 +08:00
Pig Fang
ec5eaeff81 remove unused code 2018-07-14 09:05:20 +08:00
Pig Fang
b520a464cb remove hack for test 2018-07-14 08:41:25 +08:00
Pig Fang
b6cda88ae4 fix test 2018-07-14 08:27:15 +08:00
Pig Fang
7524041a76 use Mail::fake() 2018-07-13 19:23:20 +08:00
Pig Fang
3f77c98783 fix tests of SkinlibController 2018-07-13 19:02:16 +08:00
Pig Fang
b74cc0dd59 fix tests of AdminController 2018-07-13 16:48:15 +08:00
Pig Fang
f8052b9c9b update tests of UpdateController 2018-07-13 16:42:05 +08:00
Pig Fang
d3486f3a40 add laravel/browser-kit-testing 2018-07-13 16:41:50 +08:00
Pig Fang
68d3fb1eb4 fix tests of UserController 2018-07-13 16:24:19 +08:00
Pig Fang
d1442902b2 fix tests of PlayerController 2018-07-13 16:14:49 +08:00
Pig Fang
4c44fa47cd fix tests of plugin hook 2018-07-13 16:10:23 +08:00
Pig Fang
4e6478c8f9 fix tests of middlewares 2018-07-13 16:05:20 +08:00
Pig Fang
f9774e9275 fix tests of HomeController 2018-07-13 15:52:42 +08:00
Pig Fang
d65d6e298e fix tests of ClosetController 2018-07-13 15:51:17 +08:00
Pig Fang
d859d9ce49 fix tests of PluginController 2018-07-13 15:38:22 +08:00
Pig Fang
b1974ffafd fix tests of SetupController 2018-07-13 15:26:19 +08:00
Pig Fang
3143cf0838 fix tests of TextureController 2018-07-13 15:21:13 +08:00
Pig Fang
aa68641eba fix tests of AuthController 2018-07-13 15:13:35 +08:00
Pig Fang
8e2b2c78fc fix for tests 2018-07-12 17:18:19 +08:00
printempw
da34062a9c Add L10n support for site name and description 2018-07-06 14:49:39 +08:00
printempw
815fef7f3d Enhance rendering notice for unsatisfied plugin dependencies 2018-06-29 20:54:40 +08:00
printempw
b4e8b7e8c9 Update tests of plugins 2018-06-29 18:26:48 +08:00
printempw
0a307e9221 Refine texture preview generation
The methods in App\Services\Minecraft now accept binary image data as their first parameter.
The parameters of Minecraft::generatePreviewFromSkin is reordered.
Fix skin preview for Alex model textures.
Add more parameters to Minecraft::generatePreviewFromCape for specifying image size.
2018-06-28 21:55:33 +08:00
printempw
334eb7c3c5 Clear unnecessary filesystems 2018-06-28 18:25:31 +08:00
printempw
abde385776 Add more validation rules for player name 2018-06-19 11:51:34 +08:00
printempw
b7a2d368f7 Fix maximum password length 2018-06-19 00:23:20 +08:00
printempw
36064873e3 Revert "Add a option for adding a player after registered"
This feature will be implemented as a plugin. This reverts commit ad255252b57b135ddecf89aa1331c40c97324be9.
2018-06-15 22:44:30 +08:00
Pig Fang
520a9c3b97 test: fix coverage 2018-03-11 12:01:14 +08:00
Pig Fang
f3220ee526 test: disconnect database after each test 2018-03-11 11:20:21 +08:00
printempw
6cb26bf2d8 Update tests for PluginController 2018-02-25 11:23:07 +08:00
printempw
da48fd84dc Adjust allowed maximum password length to 32 2018-02-24 16:32:19 +08:00
printempw
d54709c23d Add default texture for alex model 2018-02-23 23:17:29 +08:00
printempw
5e00131db4 Fix tests for SQLite database 2018-02-23 10:22:11 +08:00
printempw
a1cbac0afb Specify the user agent of requests by env variable 2018-02-16 18:32:54 +08:00
printempw
d01c18b379 Update tests for PluginController 2018-02-16 17:53:10 +08:00
printempw
7e6cc96e5e Return 403 instead when accessing private textures, close #111 2018-02-10 13:06:19 +08:00
Pig Fang
6f516cc2eb fix(preview): fix 2d skin preview for alex model 2018-01-04 13:10:41 +08:00
Pig Fang
55a137f014 test(services): add tests for repositories 2017-12-28 12:52:29 +08:00
Pig Fang
776a0a67ae test(model): add tests for "User" model 2017-12-27 18:40:16 +08:00
Pig Fang
f4c21a0cb2 test(model): add tests for "player" model 2017-12-26 20:07:26 +08:00
Pig Fang
a5615eb090 test(model): add tests for "Closet" model 2017-12-26 19:32:17 +08:00
Pig Fang
26742e3ae3 Add tests for Services/Hook 2017-12-04 17:04:04 +08:00
Pig Fang
97874039c6 Add tests for Services/Minecraft 2017-12-04 15:11:23 +08:00
gplane
3e5e2cc0ec Update tests for middleware 2017-11-30 10:02:29 +08:00
Pig Fang
14b7cc670c Update tests for PlayerController 2017-11-24 23:05:49 +08:00
Pig Fang
157c9e8b22 Update tests for SkinlibController 2017-11-24 18:54:30 +08:00
Pig Fang
55c2fb38ac Update tests for SetupController 2017-11-20 19:56:24 +08:00
Pig Fang
163396c6d9 Update tests for HomeController 2017-11-20 00:04:28 +08:00
Pig Fang
2e5c1f7890 Use VFS for testing 2017-11-19 12:49:24 +08:00
Pig Fang
79038d3c63 Add PHP 5.5 in Travis CI 2017-11-18 23:41:37 +08:00
Pig Fang
1ab25e80e6 Add tests for UpdateController 2017-11-18 20:36:31 +08:00
Pig Fang
99aee71cc8 Add tests for UserController 2017-11-18 13:25:08 +08:00
Pig Fang
7d48c6a609 Use "memory" driver for testing 2017-11-17 17:46:06 +08:00
Pig Fang
6cd5fce271 Download plugins in setUp function 2017-11-17 07:56:43 +08:00
Pig Fang
a413927980 Add tests for TextureController 2017-11-17 07:40:29 +08:00
Pig Fang
b19565bf8b Add tests for PluginController 2017-11-16 14:09:08 +08:00
Pig Fang
faa73bebc9 Do some checks before updating player profile 2017-11-15 14:00:11 +08:00
Pig Fang
aaf612f2d9 Add tests for PlayerController 2017-11-14 23:25:04 +08:00
printempw
ef7f75b184 Add dotenv file for testing 2017-11-09 12:09:41 +08:00
Pig Fang
622885d9c0 Update tests of AdminController 2017-11-08 17:57:12 +08:00
Pig Fang
594954dbe2 Make responsive for closet
fix #89
2017-11-06 11:07:24 +08:00
Pig Fang
4d21fb5b02 Add event assertion for AuthController 2017-11-06 07:46:43 +08:00
Pig Fang
bce4ed4a42 Add a option for adding a player after registered 2017-11-05 20:56:52 +08:00
Pig Fang
739bc17c3a Refactor Closet model 2017-11-05 16:54:01 +08:00
Pig Fang
8d1adc7e4d Add security check before resetting password 2017-11-05 10:25:20 +08:00
Pig Fang
ed27972608 Add tests for ClosetController 2017-11-04 20:25:54 +08:00
Pig Fang
b6ffa970cf Add tests for AdminController 2017-11-04 20:25:54 +08:00
Pig Fang
abd27055c1 Add tests for AuthController 2017-11-04 20:25:54 +08:00
Pig Fang
2a895e1b88 Add tests for middleware and HomeController 2017-11-04 20:25:54 +08:00
Pig Fang
71438446fe Get ready for PHPUnit 2017-11-03 23:24:25 +08:00
printempw
11d08b9545 remove unused tests 2016-09-10 17:52:04 +08:00
printempw
1e7030236e initialize for laravel 2016-08-28 10:05:21 +08:00
printempw
00678628d2 remove the foolish tests 2016-07-28 15:15:35 +08:00
printempw
ef227b1045 add some casual tests 2016-07-24 11:13:41 +08:00