Commit 04bad00c authored by Roumen Damianoff's avatar Roumen Damianoff
Browse files

updates

parent 6dc1712c
......@@ -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) :
......
......@@ -4,7 +4,7 @@
* Feed generator class for laravel-feed package.
*
* @author Roumen Damianoff <roumen@dawebs.com>
* @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
*/
......
......@@ -67,7 +67,9 @@ class FeedTest extends Orchestra\Testbench\TestCase
'link' => 'TestUrl',
'pubdate' => '2014-02-29 00:00:00',
'description' => '<p>TestResume</p>',
'content' => '<p>TestContent</p>'
'content' => '<p>TestContent</p>',
'category' => 'testCategory',
'enclosure' => ['url'=>'http://foobar.dev/someThing.jpg', 'type' => 'image/jpeg']
]);
$this->feed->addItem([
......@@ -116,6 +118,8 @@ class FeedTest extends Orchestra\Testbench\TestCase
$this->assertEquals('2014-02-29 00:00:00', $items[0]['pubdate']);
$this->assertEquals('<p>TestResume</p>', $items[0]['description']);
$this->assertEquals('<p>TestContent</p>', $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']);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment