Skip to content

Commit b7cda54

Browse files
authored
Version 1.2.1 (#8)
* Support new testbench for Laravel 7 * Update readme * Test with Laravel 7 * Use trait method to create TestResponse * Update changelog * Update readme
1 parent a9c85da commit b7cda54

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

.github/workflows/testing.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ jobs:
1111
fail-fast: true
1212
matrix:
1313
php: [7.1, 7.2, 7.3, 7.4]
14-
laravel: [5.7.*, 5.8.*, 6.*]
14+
laravel: [5.7.*, 5.8.*, 6.*, 7.*]
1515
include:
16-
- laravel: 6.*
17-
testbench: 4.*
18-
- laravel: 5.8.*
19-
testbench: 3.8.*
20-
- laravel: 5.7.*
21-
testbench: 3.7.*
16+
- laravel: 7.*
17+
testbench: 5.*
18+
- laravel: 6.*
19+
testbench: 4.*
20+
- laravel: 5.8.*
21+
testbench: 3.8.*
22+
- laravel: 5.7.*
23+
testbench: 3.7.*
2224
exclude:
23-
- laravel: 6.*
24-
php: 7.1
25+
- laravel: 6.*
26+
php: 7.1
27+
- laravel: 7.*
28+
php: 7.1
2529

2630
name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}
2731

@@ -45,6 +49,6 @@ jobs:
4549
run: |
4650
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4751
composer update --prefer-dist --no-interaction --no-suggest
48-
52+
4953
- name: Execute tests
5054
run: vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ matrix:
2626
env: LARAVEL=^6.0
2727
- php: 7.1
2828
env: LARAVEL=^7.0
29-
allow_failures:
30-
- env: LARAVEL=^7.0
3129

3230
before_script:
3331
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
1616
1717
### Fixed -->
1818

19+
## [1.2.1](https://github.com/jenky/hermes/compare/1.2.0...1.2.1) - 2020-03-03
20+
21+
### Fixed
22+
- Fix test cases for Laravel 7.
23+
1924
## [1.2.0](https://github.com/jenky/hermes/compare/1.1.1...1.2.0) - 2020-02-28
2025

2126
### Added

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ If your middleware use Laravel service container binding implementations such as
122122
],
123123
```
124124

125+
> An alternative way is [customizing the guzzle handler stack](#configure-the-guzzle-handler).
126+
125127
### Customizing the guzzle handler stack
126128

127129
Sometimes you may need complete control over how guzzle's [HandleStack](http://docs.guzzlephp.org/en/stable/handlers-and-middleware.html#handlerstack) is configured for an existing channel. For example, you may want to add, remove or unshift a middleware for a given channel's handler stack.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"illuminate/container": "^5.7|^6.0|^7.0"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "^3.5|^4.0",
32+
"orchestra/testbench": "^3.5|^4.0|^5.0",
3333
"phpunit/phpunit": "^7.0|^8.0",
3434
"squizlabs/php_codesniffer": "^3.0"
3535
},

tests/ResponseTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Jenky\Hermes\Test;
44

5-
use Illuminate\Foundation\Testing\TestResponse;
65
use Illuminate\Http\JsonResponse;
76
use Jenky\Hermes\Response;
87

@@ -23,7 +22,7 @@ public function test_json_response()
2322
$response['exception'] = false;
2423
$this->assertFalse($response['exception']);
2524

26-
TestResponse::fromBaseResponse(
25+
$this->createTestResponse(
2726
new JsonResponse($response->toArray(), $response->getStatusCode(), $response->header())
2827
)
2928
->assertHeader('Content-Type', 'application/json')

0 commit comments

Comments
 (0)