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
297
Merge Requests
297
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
6b769d1e
Unverified
Commit
6b769d1e
authored
Jun 15, 2020
by
alexpott
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3150661
by cburschka: FileFieldRSSContentTest uses XPath incorrectly
parent
073679e7
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 @
6b769d1e
...
...
@@ -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.'
);
}
}
alexpott
@alexpott
mentioned in commit
5ecde1b5
·
Jun 15, 2020
mentioned in commit
5ecde1b5
mentioned in commit 5ecde1b576a47c761da8fbd1dd7ea9ca42f8353d
Toggle commit list
alexpott
@alexpott
mentioned in commit
83f07ce0
·
Jun 15, 2020
mentioned in commit
83f07ce0
mentioned in commit 83f07ce09111acb8b43b4560ee303a905d1c72b0
Toggle commit list
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