Alexander Skvortsov
04b04f3635
Ensure app is booted when getting database
2021-04-23 15:20:29 -04:00
Alexander Skvortsov
3b3cbdc82f
Fix conflicts with other extension visibility scoping ( #26 )
...
Wrapping all `wheres` in an `orWhere` ensures that there's no conflict.
See https://github.com/flarum/core/issues/2798 , https://github.com/flarum/docs/pull/200
2021-04-20 14:51:01 -04:00
Alexander Skvortsov
0569da23e1
Drop all DB tables before installation during setup. ( #9 )
...
This ensures a clean state for the extension currently being tested. The alternative requires the user to create and keep track of multiple test databases, or manually delete/re-recreate the database every time they switch between extensions being tested. Now, a simple `composer test:setup` will always reset the test environment to the original state.
2021-04-20 14:47:07 -04:00
Alexander Skvortsov
8fd1cc4f0d
TestCase Config method ( #13 )
...
Similarly to `settings`, this allows setting/overriding config prior to application boot.
2021-04-14 16:27:59 -04:00
Sami Mazouz
b2ecb8f020
Remove UsesSettingsTrait ( #12 )
2021-04-13 23:46:04 -04:00
Alexander Skvortsov
76a869a198
Start transactions before the app is fully booted. ( #11 )
...
This make a cleaner state more likely, and ensures that settings set via `$this->setting` are cleaned up after the test case runs.
2021-04-12 10:26:05 -04:00
Alexander Skvortsov
675627ac15
Add a few more automated tests
2021-04-11 23:00:36 -04:00
Alexander Skvortsov
f13d45f77b
Test against dev version of core
...
Since we're making changes for the dev version of core, we should test against that too.
For now, this fixes issues with the `extensions` method of `Installation` being undefined.
2021-04-11 22:47:09 -04:00
Alexander Skvortsov
f2101e502e
Don't enable extensions during installation ( #7 )
2021-04-08 18:39:21 -04:00
Alexander Skvortsov
f80a88d45b
Use RequestUtil for accessing actor
2021-04-08 00:02:11 -04:00
Alexander Skvortsov
9936681634
Use Symfony translator contract instead of deprecated component
2021-04-08 00:00:49 -04:00
Sami Mazouz
a58ce93486
Merge pull request #10 from flarum/as/allow-specifying-settings-before-boot
...
Allow configuring settings before app boot
2021-04-07 22:59:20 +01:00
Alexander Skvortsov
9ed29cd35e
Add automated tests for flarum/testing
2021-04-07 22:38:58 +01:00
Alexander Skvortsov
1fbf5fd029
Add setting
method to integration TestCase
...
This allows adding settings before the app is booted. In the past we've used hacky workarounds like manually resetting a binding to override singletons to use custom setting values. It makes sense to support this through `TestCase`.
2021-04-07 15:01:40 -04:00
Sami Mazouz
d5149b7406
Eager load post.user.groups relation and allow extensions to eager load relations ( #38 )
...
* Allow extensions to eager load relations
* Eager load post.user.groups
2021-04-07 16:24:52 +01:00
Clark Winkelmann
3506991d3e
Requirement and formatting fixes ( #5 )
...
Add ext-json to composer requirements
Update editorconfig to match core
Update phpdoc to not reference missing import
2021-03-21 19:26:25 +01:00
Clark Winkelmann
f410f69b36
Add missing import for ExtensionManager ( #6 )
...
Replace bind with singleton, otherwise singleton behavior is lost
2021-03-21 19:25:02 +01:00
Clark Winkelmann
082a600adf
Fix variable names ( #4 )
...
It's not causing any issue because the correct variable name is always used to set and read the value, and PHP is fine setting new attributes on a class dynamically. It's just the explicit variables declared don't match with those actually used later.
2021-03-20 18:46:03 -04:00
Daniel Klabbers
e8f64bc2ac
fix heading of removed
2021-03-15 13:29:23 +01:00
Daniel Klabbers
4988649816
Release v0.1.0-beta.16
2021-03-15 13:24:21 +01:00
Daniel Klabbers
a805c333e7
Release v0.1.0-beta.16
2021-03-15 11:49:08 +01:00
Daniel Klabbers
b481e41a9b
Release v0.1.0-beta.16
2021-03-15 11:27:30 +01:00
Daniel Klabbers
6aad164ed7
Release v0.1.0-beta.16
2021-03-15 11:21:14 +01:00
Daniel Klabbers
1890553c8b
npm audit
2021-03-15 10:51:41 +01:00
Daniel Klabbers
e5db085417
Release v0.1.0-beta.16
2021-03-15 10:51:17 +01:00
Daniel Klabbers
dc518b0f75
Release v0.1.0-beta.16
2021-03-15 10:32:08 +01:00
Daniel Klabbers
dbccc396b0
forgot one change in changelog
2021-03-15 10:24:28 +01:00
Daniel Klabbers
cd0f550808
Release v0.1.0-beta.16
2021-03-15 10:23:58 +01:00
Daniel Klabbers
57cbb2bb7f
Release v0.1.0-beta.16
2021-03-15 10:02:50 +01:00
Daniël Klabbers
04c8a30b52
Merge pull request #19 from flarum/dependabot/npm_and_yarn/js/elliptic-6.5.4
...
Bump elliptic from 6.5.3 to 6.5.4 in /js
2021-03-15 09:55:25 +01:00
Alexander Skvortsov
ff86e68752
Use resolve helper instead of app
2021-03-13 17:13:20 -05:00
Alexander Skvortsov
506985e881
Update for beta 16
2021-03-13 17:03:56 -05:00
Alexander Skvortsov
70cbe1d186
Update to use new extenders
2021-03-13 15:15:11 -05:00
SychO9
c7fdb79ce3
Ignore generated tmp
2021-03-11 13:07:31 -05:00
SychO9
ca8b7424b8
Add required argument
2021-03-11 13:07:31 -05:00
dependabot[bot]
7fbf5ba6ed
Bump elliptic from 6.5.3 to 6.5.4 in /js
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 19:39:59 +00:00
Charlie
e8f46e04ce
Change Category ( #11 )
2021-03-08 14:39:41 -05:00
Alexander Skvortsov
df7be8d2ff
Merge pull request #18 from flarum/ck/adminux-category
...
Change Category
2021-03-08 14:39:10 -05:00
Charlie
a915382cfd
Change Category ( #36 )
2021-03-08 14:38:58 -05:00
Charlie
32708281b2
Change Category ( #26 )
2021-03-08 14:24:49 -05:00
Charlie
e17b088c20
Change Category ( #24 )
2021-03-08 14:22:03 -05:00
Charlie
b92854c8fb
Change category ( #35 )
2021-03-08 14:21:08 -05:00
Alexander Skvortsov
ce0e5c99a6
Use mockery 1.4
2021-03-06 18:58:07 -05:00
Alexander Skvortsov
19763f8641
Update PHPUnit to v9
2021-03-06 18:38:34 -05:00
Alexander Skvortsov
dd6897cb6f
Update BuildsHttpRequests for new token system
2021-03-06 18:38:12 -05:00
flarum-bot
f79506ea9f
Bundled output for commit 40a0f2e0c9
[skip ci]
2021-03-02 04:36:18 +00:00
Alexander Skvortsov
40a0f2e0c9
Fix dropdown going off top of screen
...
The previous solution didn't properly account for document scroll, so when replying to posts, the parent offset would be extremely large, and it'd fall back to the top coordinate, which is out of bounds on small screens.
2021-03-01 23:34:47 -05:00
flarum-bot
e83b88d17d
Bundled output for commit 720ea6c576
[skip ci]
2021-02-26 21:19:24 +00:00
Alexander Skvortsov
720ea6c576
Update for Editor Drivers Abstraction ( #34 )
2021-02-26 16:18:32 -05:00
imzhi
687e1c41db
ApproveContent then refresh user table DiscussionCount and CommentCount ( #16 )
2021-02-19 08:18:01 -05:00