Skip to content

Commit 89e284a

Browse files
committed
test: symfony 7.1 plural of taxon changed
1 parent 6daec82 commit 89e284a

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"symfony/property-info": "^6.4 || ^7.0",
3535
"symfony/serializer": "^6.4 || ^7.0",
3636
"symfony/translation-contracts": "^3.3",
37+
"symfony/type-info": "^7.1",
3738
"symfony/web-link": "^6.4 || ^7.0",
3839
"willdurand/negotiation": "^3.0"
3940
},

features/jsonld/interface_as_resource.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ Feature: JSON-LD using interface as resource
1515
"code": "WONDERFUL_TAXON"
1616
}
1717
"""
18-
When I send a "GET" request to "/taxa/WONDERFUL_TAXON"
18+
When I send a "GET" request to "/taxons/WONDERFUL_TAXON"
1919
Then the response status code should be 200
2020
And the response should be in JSON
2121
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
2222
And the JSON should be equal to:
2323
"""
2424
{
2525
"@context": "/contexts/Taxon",
26-
"@id": "/taxa/WONDERFUL_TAXON",
26+
"@id": "/taxons/WONDERFUL_TAXON",
2727
"@type": "Taxon",
2828
"code": "WONDERFUL_TAXON"
2929
}
@@ -49,7 +49,7 @@ Feature: JSON-LD using interface as resource
4949
"@type": "Product",
5050
"code": "GREAT_PRODUCT",
5151
"mainTaxon": {
52-
"@id": "/taxa/WONDERFUL_TAXON",
52+
"@id": "/taxons/WONDERFUL_TAXON",
5353
"@type": "Taxon",
5454
"code": "WONDERFUL_TAXON"
5555
}

tests/Fixtures/app/AppKernel.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ public function __construct(string $environment, bool $debug)
5757

5858
// patch for behat/symfony2-extension not supporting %env(APP_ENV)%
5959
$this->environment = $_SERVER['APP_ENV'] ?? $environment;
60-
61-
// patch for old versions of Doctrine Inflector, to delete when we'll drop support for v1
62-
// see https://github.com/doctrine/inflector/issues/147#issuecomment-628807276
63-
if (!class_exists(InflectorFactory::class)) { // @phpstan-ignore-next-line
64-
Inflector::rules('plural', ['/taxon/i' => 'taxa']);
65-
}
6660
}
6761

6862
public function registerBundles(): array

0 commit comments

Comments
 (0)