Commit Graph

3368 Commits

Author SHA1 Message Date
b10a17529d Convert more controller tests to request tests 2020-03-20 18:54:20 +01:00
bc80085ce4 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-03-20 17:28:58 +00:00
f31fbc5bcf Tests: Use new authenticatedAs option where useful
There are two more API integration tests that explicitly add the
"Authorization" header right now:

- `Flarum\Tests\integration\api\authentication\WithApiKeyTest`
- `Flarum\Tests\integration\api\csrf_protection\RequireCsrfTokenTest`

These two specifically test authentication, so in those cases the
explicitness seems desirable.
2020-03-20 18:28:35 +01:00
25f772c1ea Replace authenticatedRequest() by request() option
I feel this makes the parameters a bit more clear, does not rely on
inheritance (you can only inherit from one class, but we might want more
of these helpers in the future), and has less side effects (e.g. no
creation and, more importantly, deletion of users in the database).

Refs #2052.
2020-03-20 18:23:06 +01:00
a13c0bb612 Tests: Extract trait for building requests 2020-03-20 17:51:03 +01:00
4791cc77b3 Add Authenticated Test Case utility 2020-03-20 17:18:35 +01:00
e10da825d4 Users should not be able to restore discussions if deleted by admins (#2037) 2020-03-20 15:57:03 +01:00
a2d1d2b819 Update less.php to version 3.0
Now that we require PHP 7.2, this ensures we get the latest updates and
fixes as well.

Refs #1988.
2020-03-17 23:12:23 +01:00
fb277df3b0 Change Extenders properties to private (#1958) 2020-03-17 22:37:17 +01:00
a854fa8bcb Bump acorn from 6.4.0 to 6.4.1 in /js (#2065)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 22:29:36 +01:00
bc69588785 CI: Fix broken build on GitHub Actions
The MySQL service is no longer started by default on these agents.

See https://github.blog/changelog/2020-02-21-github-actions-breaking-change-ubuntu-virtual-environments-will-no-longer-start-the-mysql-service-automatically/.
2020-03-17 22:23:11 +01:00
a2d1245e90 Bundled output for commit 090b05736a24b75cd869b16a9af923812b2cb78e [skip ci] 2020-03-09 12:41:19 +00:00
090b05736a showing start user in class list now 2020-03-09 13:39:26 +01:00
4b45ce0a58 Add a baseline test for the middleware extender
Refs #2017.
2020-03-06 15:05:16 +01:00
9f8ee7dc94 Fix typo 2020-03-06 15:05:15 +01:00
4413848c11 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-03-06 13:55:39 +00:00
9212330ac2 Test Middleware extender (#2017) 2020-03-06 14:55:21 +01:00
455d070599 start using a dev stability version constant during the cycle 2020-03-05 10:50:30 +01:00
84ae88794f Remove deprecated ConfigureMiddleware Event (#2032) 2020-03-04 23:02:05 +01:00
ec3e9c722b Remove deprecated Flarum\Util\Str class 2020-03-04 22:59:14 +01:00
2e6cd584aa Remove mail settings backwards compatibility layer 2020-03-04 22:58:15 +01:00
27b0d1802e Merge branch 'refs/heads/v0.1.0-beta.12'
# Conflicts:
#	composer.json
2020-03-04 22:56:37 +01:00
2c02702d60 updated core developers in authors v0.1.0-beta.12 2020-03-03 15:47:00 +01:00
9c3a016123 Update Application.php
updated version constant for b12
2020-03-03 15:38:15 +01:00
0d208dc443 Drop support for PHP 7.1 (#2014)
* Updated PHP requirement to 7.2

* Set wikimedia less version to 1.8

* Indentation fix on composer json

* Revert "Set wikimedia less version to 1.8"

This reverts commit 22d862fd981fb8955739a1f922d27f77920c6472.
2020-02-27 00:52:03 +01:00
e7c71ec445 Re-add mail settings backwards compatibility layer 2020-02-26 23:11:22 +01:00
46e2e17c3c Require new mail driver methods, remove BC layer 2020-02-26 22:56:09 +01:00
f574f97174 Removed support for SES Mail Driver (#2011) 2020-02-26 22:36:27 +01:00
674303b997 Remove Zend compatability bridge (#2010) 2020-02-26 22:29:44 +01:00
0fba2c0c0a Re-add util class and mark it as deprecated
This would be the only breaking change in beta.12. Let's stick to our
backwards compatibility promise / intentions as much as possible, even
if we assume the class has not been used anywhere.

This BC layer will be removed again for beta.13.

Refs #1975.
2020-02-26 22:14:23 +01:00
0666448ef5 Prepare changelog for beta.12 release 2020-02-26 21:10:52 +01:00
08e40bc693 Force fixed version of text formatter 2020-02-25 11:27:59 +01:00
eaf1767008 Merge pull request #2002 from flarum/fl/extender-tests
Start testing extenders
2020-02-14 18:47:58 +01:00
9f1eca555f Bundled output for commit 72fd32dbf685d51d6d2ea78226db4c7789ef7143 [skip ci] 2020-02-14 14:57:19 +00:00
72fd32dbf6 Add disabled prop to the Select component (#1978) 2020-02-14 15:56:04 +01:00
d5ebbab3a7 Rename dead is_activated references with the new is_email_confirmed (#1974) 2020-02-14 15:34:32 +01:00
17257aacaf Updates s9e/text-formatter to 2.x (#1982)
No additional changes required, tested with fof/formatting extension.
2020-02-14 12:34:40 +01:00
f87c8c6dcd Bundled output for commit f9556d9d6aa32637bb4308e593455cf4ddb72a70 [skip ci] 2020-02-10 22:55:40 +00:00
f9556d9d6a Update AvatarEditor.js onchange to oninput (#1570)
onchange does not work in IE11 and other IE browsers. This change works with all modern browsers as well.
2020-02-10 23:54:41 +01:00
fdfc6c0de2 CI: Test on PHP 7.4 as well
If we're lucky, this should fail right now, due to #1980.
2020-02-09 06:46:33 +01:00
64e4132c92 Switch to Wikimedia's less.php fork
The original library is no longer maintained. The fork supports PHP 7.4.
2020-02-09 06:46:33 +01:00
4b78a3114f Try to fix installer in PHP 7.4 2020-02-09 06:46:33 +01:00
c01eea58b6 Start testing Route extender 2020-02-08 00:04:32 +01:00
19cb74c856 Integration tests: Allow registering extenders 2020-02-07 23:29:14 +01:00
27bcdb949b Integration tests: Add lazy server helper
This allows sending requests directly in an integration test, without
having *explicitly* booted the app.
2020-02-07 23:28:37 +01:00
94fc460240 Integration tests: Create app lazily when needed
This will allow registering extenders in test scenarios. Previously,
this would not have had any effect as the app would have booted already.
2020-02-07 23:22:22 +01:00
fc59f0fdd8 Bundled output for commit b91e9032849446d86f6bec0dc1fa6f6cf0146c8a [skip ci] 2020-02-07 14:35:37 +00:00
b91e903284 Merge pull request #1938 from flarum/ds/1255-throttling-bypass-permission
Add permission to bypass throttling
2020-02-07 15:34:25 +01:00
711e775de7 Add permission to bypass throttling 2020-02-07 15:30:09 +01:00
736e90d423 Bundled output for commit 2f3d9995d1c22d8e94ff54ddbb77be548f1dc9d2 [skip ci] 2020-02-07 11:18:30 +00:00