1
0
mirror of https://github.com/flarum/core.git synced 2025-08-21 07:41:49 +02:00
Commit Graph

8486 Commits

Author SHA1 Message Date
Alexander Skvortsov
b92695a9c2 Tests: remove prepDb workaround
Previously, the `prepareDatabase` method would directly modify the database, booting the app in the process. This would prevent any extenders from being applied, since `->extend()` has no effect once the app is booted.

Since the new implementation of `prepareDatabase` simply registers seed data to be applied during app boot, the workaround of sticking this seed data into `prepDb` is no longer necessary, and seed data common to all test cases in a class can be provided in `setUp`.

When needed, app boot is explicitly triggered in individual test cases by calling `$this->app()`.
2021-01-09 00:35:55 -05:00
Alexander Skvortsov
823e6cbd2e Add @inheritDoc to all setUp and tearDown methods 2021-01-09 00:35:55 -05:00
Franz Liedke
450ca99325 Boot app explicitly to run seeds in time 2021-01-09 00:35:47 -05:00
Alexander Skvortsov
d5bf544668 Add vscode config to gitignore 2021-01-07 23:27:32 -05:00
Alexander Skvortsov
a1a2598c03 Fix deleting posts/discussions by deleted user (#2521)
Making the $user argument nullable prevents this unnecessary exception, and doesn't introduce any issues since we check that $user exists as part of the method.
2021-01-07 17:46:14 -05:00
Franz Liedke
956050c643 Tests: Always start transaction before seeding 2021-01-07 17:34:13 -05:00
Franz Liedke
9b2383fe20 Tests: Stop using Eloquent models for seeding data 2021-01-07 17:34:13 -05:00
Franz Liedke
1b98526e89 Tests: Rely on admin user, groups, permissions from test setup script 2021-01-07 17:34:06 -05:00
flarum-bot
403ee77c6c Bundled output for commit f6478096ee [skip ci] 2021-01-07 15:26:14 +00:00
flarum-bot
293b2e31cf Bundled output for commit b222856744 [skip ci] 2021-01-07 15:25:43 +00:00
Sami Mazouz
f6478096ee Fix composer header hidden by mobile browser (#2279) 2021-01-07 10:25:12 -05:00
Alexander Skvortsov
b222856744 Add an onFollowing param to GlobalSearchState (#38)
Add an `onFollowing` param to GlobalSearchState

This ensures that it will be taken into account by IndexPage's `refreshParams` call, preventing the following page from being shown if the user:

1. goes to following
2. goes to any other page not inheriting IndexPage
3. goes to 'all discussions'

Ref https://github.com/flarum/core/issues/2516 for a full explanation.
2021-01-07 10:24:41 -05:00
Franz Liedke
a42ce7045d Tests: DB tables no longer need to be truncated 2021-01-05 22:48:09 -05:00
Franz Liedke
b14da91a98 Run integration tests in a transaction 2021-01-05 22:47:19 -05:00
Alexander Skvortsov
fb7ffc2351 Fix IOS scroll menu bug (#2527)
Fixes https://github.com/flarum/core/issues/1959

These transform lines are known to cause issues on iOS, and were added to hack around chrome issues that have since been fixed upstream.
2021-01-05 19:40:11 -05:00
flarum-bot
ed6035c674 Bundled output for commit 3b838dfd01 [skip ci] 2021-01-05 21:41:50 +00:00
SKmedix
3b838dfd01 🐛 Make sure summed value is a number (#14) 2021-01-05 16:41:00 -05:00
Sami Mazouz
111f615c60 Add default value to Settings extender (#2495) 2021-01-05 01:28:25 -05:00
Robert Korulczyk
be9d498614 Register locale extender to refresh translations after enabling extension (#2) 2020-12-23 16:10:51 -05:00
Qiaeru
135c662cf7 Fix some typos (#181) 2020-12-23 15:05:09 -05:00
Ian Morland
d368aa4e55 Fix incorrect display_name showing in email notifications (#59) 2020-12-21 12:43:27 -05:00
Daniël Klabbers
833dfb1fae changes for beta 15 2020-12-20 21:16:48 +01:00
Daniël Klabbers
7a6284c760 npm audit fix 2020-12-20 20:55:51 +01:00
flarum-bot
f9ee8e02fd Bundled output for commit 445923fb11 [skip ci] 2020-12-20 17:15:07 +00:00
Sami Mazouz
445923fb11 Add ExtensionPermissionGrid to compat (#2501) 2020-12-20 12:14:00 -05:00
Daniël Klabbers
4fc2f1ae56 beta 15 changelog and version constant 2020-12-18 20:02:22 +01:00
Robert Korulczyk
0892b83c88 Fix appearance title typo (#180) 2020-12-17 20:50:15 -05:00
Alexander Skvortsov
c9b9c1ddce Properly return allow / deny instead of boolean 2020-12-17 19:51:53 -05:00
Alexander Skvortsov
64d965fa17 Fix logic for determining whether users can add tags to a discussion 2020-12-16 17:31:44 -05:00
Alexander Skvortsov
c099c96703 Fix old-style return true in policy 2020-12-16 17:31:02 -05:00
Daniël Klabbers
dcea305864 Fixes validation failures of avatars that are jpg/jpeg (#2497)
Due to a commit by @fabpot in october, the mimetypes symfony class
now re-orders the shortened mimetypes that are returned when looking
up based on header mimetype. Our validator uses the first key, pops
the prefix off and then matches against our hardcoded array.

I've added a constraint to symfony/mime ^5.2.0 which ships with this change.
This constraint is fully compatible with our current lineup. In addition
I changed the hardcoded array to use the first entry from symfony mime types
now `jpg` instead of `jpeg`.
2020-12-16 13:53:17 -05:00
flarum-bot
2d22a8a1cd Bundled output for commit 68b0554c2f [skip ci] 2020-12-15 22:50:49 +00:00
Alexander Skvortsov
68b0554c2f Support multiple callback-based settings per-extension 2020-12-15 17:49:24 -05:00
Daniël Klabbers
765254c4f5 changelog and constraint for beta 15 2020-12-15 09:41:50 +01:00
Daniël Klabbers
9429b229bb npm audit fix 2020-12-15 09:34:41 +01:00
Daniël Klabbers
064d1f5eb6 changelog and constraint for beta 15 2020-12-15 09:33:50 +01:00
Daniël Klabbers
e0979861fe npm audit fix 2020-12-15 09:31:08 +01:00
Daniël Klabbers
1b69d455d1 changelog and constraint for beta 15 2020-12-15 09:30:15 +01:00
Daniël Klabbers
a30a5aefce npm audit fix 2020-12-15 09:29:29 +01:00
Daniël Klabbers
8e3e51a613 changelog and constraint for beta 15 2020-12-15 09:28:40 +01:00
Daniël Klabbers
69997f188b npm audit fix 2020-12-15 09:27:52 +01:00
Daniël Klabbers
aaf3bc309c changelog and constraint for beta 15 2020-12-15 09:26:39 +01:00
Daniël Klabbers
22a5b3e381 npm audit fix 2020-12-15 09:24:26 +01:00
Daniël Klabbers
d93c80fdba changelog and constraint for beta 15 2020-12-15 09:22:33 +01:00
Daniël Klabbers
afcd0dc511 npm audit fix 2020-12-15 09:20:31 +01:00
Daniël Klabbers
3b59e80955 changelog and constraint for beta 15 2020-12-15 09:18:59 +01:00
Daniël Klabbers
5f8a4009fe changelog and constraint for beta 15 2020-12-15 09:15:26 +01:00
Daniël Klabbers
80101d52a9 npm audit fix 2020-12-15 09:15:26 +01:00
Daniël Klabbers
1df1b136aa changelog and constraint for beta 15 2020-12-15 09:04:29 +01:00
Daniël Klabbers
d6c7f5b921 npm audit fix 2020-12-15 09:03:27 +01:00