Skip to content
Snippets Groups Projects
Commit fa9114be authored by Jaydev Bhatt's avatar Jaydev Bhatt
Browse files

Issue #3281676: Fix PHPCS and PHPstan issues for the unit test file as well.

parent 2a1aa0e9
No related branches found
No related tags found
1 merge request!28Issue #3281676: Update Views’ paths dynamically based on admin path setting
...@@ -13,6 +13,7 @@ use Drupal\rename_admin_paths\Config; ...@@ -13,6 +13,7 @@ use Drupal\rename_admin_paths\Config;
use Drupal\rename_admin_paths\Form\RenameAdminPathsSettingsForm; use Drupal\rename_admin_paths\Form\RenameAdminPathsSettingsForm;
use Prophecy\Argument; use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\PhpUnit\ProphecyTrait;
use Drupal\Core\Cache\CacheBackendInterface;
/** /**
* Tests the behavior of the module settings form. * Tests the behavior of the module settings form.
...@@ -107,8 +108,10 @@ class RenameAdminPathsSettingsFormTest extends UnitTestCase { ...@@ -107,8 +108,10 @@ class RenameAdminPathsSettingsFormTest extends UnitTestCase {
$routeBuilder = $this->createMock(RouteBuilderInterface::class); $routeBuilder = $this->createMock(RouteBuilderInterface::class);
$cache = $this->createMock(CacheBackendInterface::class);
$settings_form = new RenameAdminPathsSettingsForm( $settings_form = new RenameAdminPathsSettingsForm(
$config_factory, $typed_config_manager, $config, $routeBuilder, $config_factory, $typed_config_manager, $config, $routeBuilder, $cache
); );
// Inject StringTranslationTrait. // Inject StringTranslationTrait.
$settings_form->setStringTranslation($this->getStringTranslationStub()); $settings_form->setStringTranslation($this->getStringTranslationStub());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment