Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digit-joinup-reference
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ec-europa
digit-joinup-reference
Commits
3f63fd12
Commit
3f63fd12
authored
2 years ago
by
Claudiu Cristea
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-7466: Fix the URL alias for IOPE news page.
parent
c3e4acd8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!58
ISAICP-7466: Can't add news
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/features/update/deploy_108900.feature
+15
-0
15 additions, 0 deletions
tests/features/update/deploy_108900.feature
web/modules/custom/joinup_core/joinup_core.deploy.php
+14
-0
14 additions, 0 deletions
web/modules/custom/joinup_core/joinup_core.deploy.php
with
29 additions
and
0 deletions
tests/features/update/deploy_108900.feature
0 → 100644
+
15
−
0
View file @
3f63fd12
@api
@group-clone
Feature
:
Covers \joinup_core_deploy_108900().
Scenario
:
Test that news creation works.
Given
I am logged in as a moderator
And
I am on the homepage
When
I click
"Interoperable Europe"
And
I click
"News"
Then
the url should match
"/interoperable-europe/latest-news"
When
I click
"Add news"
in the plus button menu
Then
the response status code should be 200
And
the url should match
"/interoperable-europe/news/add"
And
I should see the heading
"Add news"
This diff is collapsed.
Click to expand it.
web/modules/custom/joinup_core/joinup_core.deploy.php
+
14
−
0
View file @
3f63fd12
...
@@ -13,3 +13,17 @@
...
@@ -13,3 +13,17 @@
*/
*/
declare
(
strict_types
=
1
);
declare
(
strict_types
=
1
);
use
Drupal\pathauto\PathautoState
;
/**
* Fix Interoperable Europe news creation link.
*/
function
joinup_core_deploy_108900
():
void
{
$entityTypeManager
=
\Drupal
::
entityTypeManager
();
$entityTypeManager
->
getStorage
(
'node'
)
->
load
(
704825
)
->
set
(
'path'
,
[
'pathauto'
=>
PathautoState
::
SKIP
,
'alias'
=>
'/interoperable-europe/latest-news'
,
])
->
save
();
$entityTypeManager
->
getStorage
(
'path_alias'
)
->
load
(
84170
)
->
delete
();
}
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