mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
test: add test for FeedParser (#3754)
This commit is contained in:
parent
5f37c72be0
commit
daef240cd2
4 changed files with 174 additions and 25 deletions
|
@ -142,6 +142,7 @@ final class FeedParser
|
|||
}
|
||||
|
||||
if (isset($feedItem->guid)) {
|
||||
// Pluck out a url from guid
|
||||
foreach ($feedItem->guid->attributes() as $attribute => $value) {
|
||||
if (
|
||||
$attribute === 'isPermaLink'
|
||||
|
@ -207,9 +208,9 @@ final class FeedParser
|
|||
'content' => null,
|
||||
'timestamp' => null,
|
||||
'author' => null,
|
||||
'uid' => null,
|
||||
'categories' => [],
|
||||
'enclosures' => [],
|
||||
//'uid' => null,
|
||||
//'categories' => [],
|
||||
//'enclosures' => [],
|
||||
];
|
||||
if (isset($feedItem->link)) {
|
||||
// todo: trim uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue