• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 14955337251

11 May 2025 11:29AM UTC coverage: 7.202% (-1.3%) from 8.457%
14955337251

Pull #7135

github

web-flow
Merge 72523bb00 into 4dd0cdfc4
Pull Request #7135: fix(symfony,laravel): InvalidUriVariableException status code (e400)

1 of 65 new or added lines in 5 files covered. (1.54%)

503 existing lines in 14 files now uncovered.

10846 of 150592 relevant lines covered (7.2%)

3.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/tests/Fixtures/TestBundle/Entity/PullRequest7135/Foo.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Tests\Fixtures\TestBundle\Entity\PullRequest7135;
15

16
use ApiPlatform\Metadata\ApiResource;
17
use ApiPlatform\Metadata\Post;
18
use Doctrine\ORM\Mapping as ORM;
19
use Symfony\Component\Uid\Uuid;
20

21
#[ORM\Entity()]
22
#[ApiResource(
NEW
23
    shortName: 'FooPr7135',
×
NEW
24
    operations: [
×
NEW
25
        new Post(
×
NEW
26
            uriTemplate: '/pull-request-7135/foo/',
×
NEW
27
        ),
×
NEW
28
    ],
×
NEW
29
    normalizationContext: ['iri_only' => true],
×
NEW
30
)]
×
31
#[ORM\Table(name: 'foo6466')]
32
class Foo
33
{
34
    #[ORM\Id]
35
    #[ORM\Column(type: 'symfony_uuid', unique: true)]
36
    #[ORM\GeneratedValue(strategy: 'CUSTOM')]
37
    #[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
38
    public Uuid $id;
39

40
    #[ORM\ManyToOne(targetEntity: Bar::class)]
41
    #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false)]
42
    public Bar $bar;
43

44
    public function __construct()
45
    {
NEW
46
        $this->id = Uuid::v7();
×
47
    }
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc