Skip to content

Commit

Permalink
Merge branch 'release/3.1.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris committed Jul 20, 2023
2 parents bf00647 + df73fb3 commit 6dfbbf4
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
vendor/
composer.lock
.phpunit.result.cache
.phpunit.cache
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file. This project adheres to
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).

## [3.1.0] - 2023-07-20

### Added

- [core#12](https://github.com/laravel-json-api/core/pull/12) Add `ulid()` method to the `ID` field class.

## [3.0.0] - 2023-02-14

### Changed
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"laravel-json-api/core": "^3.0",
"laravel-json-api/core": "^3.2",
"laravel-json-api/eloquent": "^3.0",
"laravel-json-api/encoder-neomerx": "^3.0",
"laravel-json-api/exceptions": "^2.0",
Expand All @@ -34,9 +34,9 @@
"laravel/framework": "^10.0"
},
"require-dev": {
"laravel-json-api/testing": "^2.0",
"laravel-json-api/testing": "^2.1",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.5.28"
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down
32 changes: 11 additions & 21 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
beStrictAboutTestsThatDoNotTestAnything="true" bootstrap="vendor/autoload.php" colors="true"
processIsolation="false" stopOnError="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage/>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/lib/Unit/</directory>
Expand All @@ -38,4 +23,9 @@
<ini name="error_reporting" value="E_ALL"/>
<env name="DB_CONNECTION" value="testing"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/dummy/tests/Api/V1/Posts/UpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function test(): void
/**
* @return array
*/
public function fieldProvider(): array
public static function fieldProvider(): array
{
return [
['content'],
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/tests/Api/V1/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function setUp(): void
/**
* @return array
*/
public function notAcceptableMediaTypeProvider(): array
public static function notAcceptableMediaTypeProvider(): array
{
return [
'application/json' => ['application/json'],
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Acceptance/Relationships/ToManyLinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function setUp(): void
/**
* @return array[]
*/
public function scenarioProvider(): array
public static function scenarioProvider(): array
{
return [
'hidden' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Acceptance/Relationships/ToOneLinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function setUp(): void
/**
* @return array[]
*/
public function scenarioProvider(): array
public static function scenarioProvider(): array
{
return [
'hidden' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Integration/Routing/ActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ActionsTest extends TestCase
/**
* @return array
*/
public function methodProvider(): array
public static function methodProvider(): array
{
return [
'GET' => ['GET'],
Expand Down
8 changes: 4 additions & 4 deletions tests/lib/Integration/Routing/HasManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class HasManyTest extends TestCase
/**
* @return array
*/
public function genericProvider(): array
public static function genericProvider(): array
{
return [
'showRelated' => [
Expand Down Expand Up @@ -181,7 +181,7 @@ public function testUri(string $method, string $uri): void
/**
* @return array[]
*/
public function onlyProvider(): array
public static function onlyProvider(): array
{
return [
['related', [
Expand Down Expand Up @@ -259,7 +259,7 @@ public function testOnly($only, array $matches): void
/**
* @return array
*/
public function exceptProvider()
public static function exceptProvider(): array
{
return [
['related', [
Expand Down Expand Up @@ -365,7 +365,7 @@ public function testReadOnly(): void
/**
* @return array
*/
public function ownActionProvider(): array
public static function ownActionProvider(): array
{
return [
'showRelated' => [
Expand Down
8 changes: 4 additions & 4 deletions tests/lib/Integration/Routing/HasOneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class HasOneTest extends TestCase
/**
* @return array
*/
public function genericProvider(): array
public static function genericProvider(): array
{
return [
'showRelated' => [
Expand Down Expand Up @@ -173,7 +173,7 @@ public function testUri(string $method, string $uri, string $action, string $nam
/**
* @return array[]
*/
public function onlyProvider(): array
public static function onlyProvider(): array
{
return [
['related', [
Expand Down Expand Up @@ -228,7 +228,7 @@ public function testOnly($only, array $matches): void
/**
* @return array
*/
public function exceptProvider()
public static function exceptProvider(): array
{
return [
['related', [
Expand Down Expand Up @@ -308,7 +308,7 @@ public function testReadOnly(): void
/**
* @return array
*/
public function ownActionProvider(): array
public static function ownActionProvider(): array
{
return [
'showRelated' => [
Expand Down
8 changes: 4 additions & 4 deletions tests/lib/Integration/Routing/ResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ResourceTest extends TestCase
/**
* @return array
*/
public function routeProvider(): array
public static function routeProvider(): array
{
return [
'index' => ['GET', '/api/v1/posts', 'index', false],
Expand Down Expand Up @@ -330,7 +330,7 @@ public function testResourceParameter(string $method, string $uri, string $actio
/**
* @return array
*/
public function onlyProvider(): array
public static function onlyProvider(): array
{
return [
['index', [
Expand Down Expand Up @@ -390,7 +390,7 @@ public function testOnly($only, array $matches): void
/**
* @return array
*/
public function exceptProvider(): array
public static function exceptProvider(): array
{
return [
['store', [
Expand Down Expand Up @@ -474,7 +474,7 @@ public function testReadOnly(): void
/**
* @return array
*/
public function resourceMethodProvider(): array
public static function resourceMethodProvider(): array
{
return [
'GET' => ['GET'],
Expand Down

0 comments on commit 6dfbbf4

Please sign in to comment.