From d00936e0f4903b9af96c1ece2b41594f9f33681e Mon Sep 17 00:00:00 2001 From: freek Date: Tue, 24 Jan 2017 00:46:32 +0100 Subject: [PATCH] add support for Laravel 5.4 --- CHANGELOG.md | 4 ++++ composer.json | 5 ++--- tests/FeedTest.php | 2 ++ tests/TestCase.php | 6 ++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 372f822..8f5040c 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All Notable changes to `laravel-feed` will be documented in this file +## 1.1.10 - 2017-01-24 + +- add support for Laravel 5.4 + ## 1.0.10 - 2016-10-01 - add `CDATA` to title diff --git a/composer.json b/composer.json index 6c50072..3ebbe15 100644 --- a/composer.json +++ b/composer.json @@ -25,13 +25,12 @@ ], "require": { "php" : "^7.0", - "illuminate/support": "~5.1.0|~5.2.0|~5.3.0|~5.4.0@dev", + "illuminate/support": "~5.1.0|~5.2.0|~5.3.0|~5.4.0", "nesbot/carbon": "^1.0" }, "require-dev": { "phpunit/phpunit": "5.*", - "orchestra/testbench": "~3.3.0", - "orchestra/database": "~3.3.0" + "orchestra/testbench": "~3.3.0|~3.4.0" }, "autoload": { "psr-4": { diff --git a/tests/FeedTest.php b/tests/FeedTest.php index 52c73b9..d7741c1 100644 --- a/tests/FeedTest.php +++ b/tests/FeedTest.php @@ -16,6 +16,8 @@ public function all_feeds_are_available_on_their_registered_routes() collect($this->feedNames)->each(function (string $feedName) { $this->assertEquals(200, $this->call('GET', "/feedBaseUrl/{$feedName}")->getStatusCode()); }); + + } /** @test */ diff --git a/tests/TestCase.php b/tests/TestCase.php index af2b7d1..fa1d57b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,6 +3,8 @@ namespace Spatie\Feed\Test; use Carbon\Carbon; +use Exception; +use Illuminate\Foundation\Exceptions\Handler; use Spatie\Feed\FeedServiceProvider; abstract class TestCase extends \Orchestra\Testbench\TestCase @@ -14,6 +16,8 @@ public function __construct($name = null, array $data = [], $dataName = '') ->startOfDay()); parent::__construct($name, $data, $dataName); + + } protected function getPackageProviders($app) @@ -40,6 +44,8 @@ protected function getEnvironmentSetUp($app) $app['config']->set('laravel-feed.feeds', $feed); + $app['config']->set('app.debug', true); + $this->setUpRoutes($app); }