Browse Source

revert test data, fix test for article in rss

pull/108/head
Aaron Parecki 4 years ago
parent
commit
536292c9eb
No known key found for this signature in database GPG Key ID: 276C2817346D6056
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      tests/FeedTest.php
  2. +1
    -1
      tests/data/feed.example.com/rss

+ 1
- 1
tests/FeedTest.php View File

@ -347,7 +347,7 @@ class FeedTest extends PHPUnit_Framework_TestCase {
$this->assertEquals(10, count($data->items));
for($i=0; $i<10; $i++) {
$this->assertEquals('entry', $data->items[$i]->type);
$this->assertEquals('note', $data->items[$i]->{'post-type'});
$this->assertEquals(($i == 4 ? 'article' : 'note'), $data->items[$i]->{'post-type'});
$this->assertEquals('Ryan Barrett', $data->items[$i]->author->name);
$this->assertEquals('https://snarfed.org/', $data->items[$i]->author->url);
$this->assertNotEmpty($data->items[$i]->url);

+ 1
- 1
tests/data/feed.example.com/rss View File

@ -90,7 +90,7 @@ Connection: keep-alive
<slash:comments>0</slash:comments>
</item>
<item>
<title></title>
<title>Bridgy Fed</title>
<link>https://snarfed.org/2017-10-22_bridgy-fed</link>
<comments>https://snarfed.org/2017-10-22_bridgy-fed#respond</comments>
<pubDate>Mon, 23 Oct 2017 04:01:46 +0000</pubDate>

Loading…
Cancel
Save