mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Stop using app() helper in tests
This commit is contained in:
@@ -154,7 +154,7 @@ class CreateTest extends TestCase
|
||||
public function disabling_sign_up_prevents_user_creation()
|
||||
{
|
||||
/** @var SettingsRepositoryInterface $settings */
|
||||
$settings = app(SettingsRepositoryInterface::class);
|
||||
$settings = $this->app()->getContainer()->make(SettingsRepositoryInterface::class);
|
||||
$settings->set('allow_sign_up', false);
|
||||
|
||||
$response = $this->send(
|
||||
|
Reference in New Issue
Block a user