Skip to content

Commit 6dfbbf4

Browse files
committed
Merge branch 'release/3.1.0' into main
2 parents bf00647 + df73fb3 commit 6dfbbf4

File tree

12 files changed

+38
-41
lines changed

12 files changed

+38
-41
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
vendor/
33
composer.lock
44
.phpunit.result.cache
5+
.phpunit.cache

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## [3.1.0] - 2023-07-20
7+
8+
### Added
9+
10+
- [core#12](https://github.com/laravel-json-api/core/pull/12) Add `ulid()` method to the `ID` field class.
11+
612
## [3.0.0] - 2023-02-14
713

814
### Changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"php": "^8.1",
2727
"ext-json": "*",
28-
"laravel-json-api/core": "^3.0",
28+
"laravel-json-api/core": "^3.2",
2929
"laravel-json-api/eloquent": "^3.0",
3030
"laravel-json-api/encoder-neomerx": "^3.0",
3131
"laravel-json-api/exceptions": "^2.0",
@@ -34,9 +34,9 @@
3434
"laravel/framework": "^10.0"
3535
},
3636
"require-dev": {
37-
"laravel-json-api/testing": "^2.0",
37+
"laravel-json-api/testing": "^2.1",
3838
"orchestra/testbench": "^8.0",
39-
"phpunit/phpunit": "^9.5.28"
39+
"phpunit/phpunit": "^10.0"
4040
},
4141
"autoload": {
4242
"psr-4": {

phpunit.xml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
beStrictAboutTestsThatDoNotTestAnything="true"
6-
bootstrap="vendor/autoload.php"
7-
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
convertDeprecationsToExceptions="true"
12-
processIsolation="false"
13-
stopOnError="false"
14-
stopOnFailure="false"
15-
verbose="true"
16-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
17-
>
18-
<coverage>
19-
<include>
20-
<directory suffix=".php">src/</directory>
21-
</include>
22-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
3+
beStrictAboutTestsThatDoNotTestAnything="true" bootstrap="vendor/autoload.php" colors="true"
4+
processIsolation="false" stopOnError="false" stopOnFailure="false"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache"
6+
backupStaticProperties="false">
7+
<coverage/>
238
<testsuites>
249
<testsuite name="Unit">
2510
<directory suffix="Test.php">./tests/lib/Unit/</directory>
@@ -38,4 +23,9 @@
3823
<ini name="error_reporting" value="E_ALL"/>
3924
<env name="DB_CONNECTION" value="testing"/>
4025
</php>
26+
<source>
27+
<include>
28+
<directory suffix=".php">src/</directory>
29+
</include>
30+
</source>
4131
</phpunit>

tests/dummy/tests/Api/V1/Posts/UpdateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function test(): void
9090
/**
9191
* @return array
9292
*/
93-
public function fieldProvider(): array
93+
public static function fieldProvider(): array
9494
{
9595
return [
9696
['content'],

tests/dummy/tests/Api/V1/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function setUp(): void
4646
/**
4747
* @return array
4848
*/
49-
public function notAcceptableMediaTypeProvider(): array
49+
public static function notAcceptableMediaTypeProvider(): array
5050
{
5151
return [
5252
'application/json' => ['application/json'],

tests/lib/Acceptance/Relationships/ToManyLinksTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function setUp(): void
6868
/**
6969
* @return array[]
7070
*/
71-
public function scenarioProvider(): array
71+
public static function scenarioProvider(): array
7272
{
7373
return [
7474
'hidden' => [

tests/lib/Acceptance/Relationships/ToOneLinksTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function setUp(): void
6161
/**
6262
* @return array[]
6363
*/
64-
public function scenarioProvider(): array
64+
public static function scenarioProvider(): array
6565
{
6666
return [
6767
'hidden' => [

tests/lib/Integration/Routing/ActionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ActionsTest extends TestCase
3030
/**
3131
* @return array
3232
*/
33-
public function methodProvider(): array
33+
public static function methodProvider(): array
3434
{
3535
return [
3636
'GET' => ['GET'],

tests/lib/Integration/Routing/HasManyTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HasManyTest extends TestCase
2929
/**
3030
* @return array
3131
*/
32-
public function genericProvider(): array
32+
public static function genericProvider(): array
3333
{
3434
return [
3535
'showRelated' => [
@@ -181,7 +181,7 @@ public function testUri(string $method, string $uri): void
181181
/**
182182
* @return array[]
183183
*/
184-
public function onlyProvider(): array
184+
public static function onlyProvider(): array
185185
{
186186
return [
187187
['related', [
@@ -259,7 +259,7 @@ public function testOnly($only, array $matches): void
259259
/**
260260
* @return array
261261
*/
262-
public function exceptProvider()
262+
public static function exceptProvider(): array
263263
{
264264
return [
265265
['related', [
@@ -365,7 +365,7 @@ public function testReadOnly(): void
365365
/**
366366
* @return array
367367
*/
368-
public function ownActionProvider(): array
368+
public static function ownActionProvider(): array
369369
{
370370
return [
371371
'showRelated' => [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy