1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 03:01:22 +02:00

Tweak event extender (tests)

- Inject contract, not implementation
- Do not dispatch event in test, let the core do that
- Ensure the relevant database tables are reset prior to the test
- Use correct parameter order for assertions

Refs #2097.
This commit is contained in:
Franz Liedke
2020-04-13 11:37:03 +02:00
parent cde69480bf
commit 8b30734ffb
2 changed files with 27 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ namespace Flarum\Extend;
use Flarum\Extension\Extension;
use Illuminate\Contracts\Container\Container;
use Illuminate\Events\Dispatcher;
use Illuminate\Contracts\Events\Dispatcher;
class Event implements ExtenderInterface
{