Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Roumen Damianoff committed May 23, 2016
1 parent 6dc1712 commit 04bad00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) :
Expand Down
2 changes: 1 addition & 1 deletion src/Roumen/Feed/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Feed generator class for laravel-feed package.
*
* @author Roumen Damianoff <[email protected]>
* @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
*/
Expand Down
6 changes: 5 additions & 1 deletion tests/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public function testFeedAddItem()
'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([
Expand Down Expand Up @@ -116,6 +118,8 @@ public function testFeedAddItem()
$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']);
}

Expand Down

0 comments on commit 04bad00

Please sign in to comment.