diff --git a/README.md b/README.md index dbd1652..c8307d2 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Branch dev-master is for development and is UNSTABLE ## Installation -Run the following command and provide the latest stable version (e.g v2.10.1) : +Run the following command and provide the latest stable version (e.g v2.10.2) : ```bash composer require roumen/feed @@ -25,13 +25,13 @@ or add the following to your `composer.json` file : Then register this service provider with Laravel : ```php -'Roumen\Feed\FeedServiceProvider', +Roumen\Feed\FeedServiceProvider::class, ``` and add class alias : ```php -'Feed' => 'Roumen\Feed\Feed', +'Feed' => Roumen\Feed\Feed::class, ``` Publish package views (OPTIONAL) : diff --git a/src/Roumen/Feed/Feed.php b/src/Roumen/Feed/Feed.php index d9a534a..49523fa 100644 --- a/src/Roumen/Feed/Feed.php +++ b/src/Roumen/Feed/Feed.php @@ -4,7 +4,7 @@ * Feed generator class for laravel-feed package. * * @author Roumen Damianoff - * @version 2.10.1 + * @version 2.10.2 * @link https://roumen.it/projects/laravel-feed * @license http://opensource.org/licenses/mit-license.php MIT License */ diff --git a/tests/FeedTest.php b/tests/FeedTest.php index e81eb59..811764f 100644 --- a/tests/FeedTest.php +++ b/tests/FeedTest.php @@ -67,7 +67,9 @@ public function testFeedAddItem() 'link' => 'TestUrl', 'pubdate' => '2014-02-29 00:00:00', 'description' => '

TestResume

', - 'content' => '

TestContent

' + 'content' => '

TestContent

', + 'category' => 'testCategory', + 'enclosure' => ['url'=>'http://foobar.dev/someThing.jpg', 'type' => 'image/jpeg'] ]); $this->feed->addItem([ @@ -116,6 +118,8 @@ public function testFeedAddItem() $this->assertEquals('2014-02-29 00:00:00', $items[0]['pubdate']); $this->assertEquals('

TestResume

', $items[0]['description']); $this->assertEquals('

TestContent

', $items[0]['content']); + $this->assertEquals('http://foobar.dev/someThing.jpg', $items[0]['enclosure']['url']); + $this->assertEquals('testCategory', $items[0]['category']); $this->assertEquals('TestTitle5', $items[4]['title']); }