Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
83f07ce0
Unverified
Commit
83f07ce0
authored
Jun 15, 2020
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3150661
by cburschka: FileFieldRSSContentTest uses XPath incorrectly
(cherry picked from commit
6b769d1e
)
parent
4f61b6f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
core/modules/file/tests/src/Functional/FileFieldRSSContentTest.php
...les/file/tests/src/Functional/FileFieldRSSContentTest.php
+3
-4
No files found.
core/modules/file/tests/src/Functional/FileFieldRSSContentTest.php
View file @
83f07ce0
...
...
@@ -63,14 +63,13 @@ public function testFileFieldRSSContent() {
// Check that the RSS enclosure appears in the RSS feed.
$this
->
drupalGet
(
'rss.xml'
);
$uploaded_filename
=
str_replace
(
'public://'
,
''
,
$node_file
->
getFileUri
());
$selector
=
sprintf
(
'
enclosure[@url="%s"][@length="%s"][
@type="%s"]'
,
file_create_url
(
"public://
$uploaded_filename
"
,
[
'absolute'
=>
TRUE
]
),
'
//enclosure[@url="%s" and @length="%s" and
@type="%s"]'
,
file_create_url
(
$node_file
->
getFileUri
()
),
$node_file
->
getSize
(),
$node_file
->
getMimeType
()
);
$this
->
assertNot
Null
(
$this
->
getSession
()
->
getDriver
()
->
find
(
'xpath'
,
$selector
),
'File field RSS enclosure is displayed when viewing the RSS feed.'
);
$this
->
assertNot
Empty
(
$this
->
getSession
()
->
getDriver
()
->
find
(
$selector
),
'File field RSS enclosure is displayed when viewing the RSS feed.'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment