Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metatag
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
metatag
Merge requests
!97
Resolve
#3413633
"Adapt tests for"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#3413633
"Adapt tests for"
issue/metatag-3413633:3413633-adapt-tests-for
into
2.0.x
Overview
0
Commits
13
Pipelines
9
Changes
18
Open
Nikolay Shapovalov
requested to merge
issue/metatag-3413633:3413633-adapt-tests-for
into
2.0.x
1 year ago
Overview
0
Commits
13
Pipelines
9
Changes
18
Expand
Closes
#3413633
0
0
Merge request reports
Compare
2.0.x
version 8
95508e29
1 year ago
version 7
ff2ca2ea
1 year ago
version 6
503ede3b
1 year ago
version 5
efd8714b
1 year ago
version 4
b9db9602
1 year ago
version 3
94b87430
1 year ago
version 2
c5304317
1 year ago
version 1
dc1ca981
1 year ago
2.0.x (base)
and
latest version
latest version
fc13b8d1
13 commits,
1 year ago
version 8
95508e29
12 commits,
1 year ago
version 7
ff2ca2ea
11 commits,
1 year ago
version 6
503ede3b
10 commits,
1 year ago
version 5
efd8714b
9 commits,
1 year ago
version 4
b9db9602
8 commits,
1 year ago
version 3
94b87430
7 commits,
1 year ago
version 2
c5304317
4 commits,
1 year ago
version 1
dc1ca981
2 commits,
1 year ago
18 files
+
118
−
113
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
metatag_extended_perms/tests/src/Functional/PermissionsTest.php
+
4
−
10
Options
@@ -2,9 +2,10 @@
namespace
Drupal\Tests\metatag_extended_perms\Functional
;
use
Drupal\node\Entity\NodeType
;
use
Drupal\Tests\BrowserTestBase
;
use
Drupal\Tests\field_ui
\Traits\FieldUiTestTrait
;
use
Drupal\Tests\metatag\Functional\MetatagHelperTrait
;
use
Drupal\node\Entity\NodeType
;
/**
* Verify the new permissions are added.
@@ -14,6 +15,7 @@ use Drupal\node\Entity\NodeType;
class
PermissionsTest
extends
BrowserTestBase
{
// Contains helper methods.
use
FieldUiTestTrait
;
use
MetatagHelperTrait
;
/**
@@ -198,15 +200,7 @@ class PermissionsTest extends BrowserTestBase {
$this
->
drupalGet
(
'node/add/page'
);
// Add a metatag field to the entity type test_entity.
$this
->
drupalGet
(
'admin/structure/types/manage/page/fields/add-field'
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$edit
=
[
'label'
=>
'Metatag'
,
'field_name'
=>
'metatag'
,
'new_storage_type'
=>
'metatag'
,
];
$this
->
submitForm
(
$edit
,
'Save and continue'
);
$this
->
submitForm
([],
'Save field settings'
);
$this
->
fieldUIAddNewField
(
'admin/structure/types/manage/page'
,
'metatag'
,
'Metatag'
,
'metatag'
);
// Clear all settings.
$this
->
container
->
get
(
'entity_field.manager'
)
->
clearCachedFieldDefinitions
();
Loading