Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rename_admin_paths
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
rename_admin_paths
Commits
fa9114be
Commit
fa9114be
authored
1 month ago
by
Jaydev Bhatt
Browse files
Options
Downloads
Patches
Plain Diff
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
!28
Issue #3281676: Update Views’ paths dynamically based on admin path setting
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Unit/Form/RenameAdminPathsSettingsFormTest.php
+4
-1
4 additions, 1 deletion
tests/src/Unit/Form/RenameAdminPathsSettingsFormTest.php
with
4 additions
and
1 deletion
tests/src/Unit/Form/RenameAdminPathsSettingsFormTest.php
+
4
−
1
View file @
fa9114be
...
@@ -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
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment