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

api-platform / core / 7142557150

08 Dec 2023 02:28PM UTC coverage: 36.003% (-1.4%) from 37.36%
7142557150

push

github

web-flow
fix(jsonld): remove link to ApiDocumentation when doc is disabled (#6029)

0 of 1 new or added line in 1 file covered. (0.0%)

2297 existing lines in 182 files now uncovered.

9992 of 27753 relevant lines covered (36.0%)

147.09 hits per line

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

0.0
/src/Metadata/Tests/Fixtures/ApiResource/RelationMultiple.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\Metadata\Tests\Fixtures\ApiResource;
15

16
use ApiPlatform\Metadata\ApiProperty;
17
use ApiPlatform\Metadata\ApiResource;
18
use ApiPlatform\Metadata\Get;
19
use ApiPlatform\Metadata\GetCollection;
20
use ApiPlatform\Metadata\Link;
21
use ApiPlatform\Metadata\Post;
22
use ApiPlatform\Tests\Fixtures\TestBundle\State\RelationMultipleProvider;
23

24
#[ApiResource(
UNCOV
25
    mercure: true,
×
UNCOV
26
    operations: [
×
UNCOV
27
        new Post(),
×
UNCOV
28
        new Get(
×
UNCOV
29
            uriTemplate: '/dummy/{firstId}/relations/{secondId}',
×
UNCOV
30
            uriVariables: [
×
UNCOV
31
                'firstId' => new Link(
×
UNCOV
32
                    fromClass: Dummy::class,
×
UNCOV
33
                    toProperty: 'first',
×
UNCOV
34
                    identifiers: ['id'],
×
UNCOV
35
                ),
×
UNCOV
36
                'secondId' => new Link(
×
UNCOV
37
                    fromClass: Dummy::class,
×
UNCOV
38
                    toProperty: 'second',
×
UNCOV
39
                    identifiers: ['id'],
×
UNCOV
40
                ),
×
UNCOV
41
            ],
×
UNCOV
42
            provider: RelationMultipleProvider::class,
×
UNCOV
43
        ),
×
UNCOV
44
        new GetCollection(
×
UNCOV
45
            uriTemplate : '/dummy/{firstId}/relations',
×
UNCOV
46
            uriVariables: [
×
UNCOV
47
                'firstId' => new Link(
×
UNCOV
48
                    fromClass: Dummy::class,
×
UNCOV
49
                    toProperty: 'first',
×
UNCOV
50
                    identifiers: ['id'],
×
UNCOV
51
                ),
×
UNCOV
52
            ],
×
UNCOV
53
            provider: RelationMultipleProvider::class,
×
UNCOV
54
        ),
×
UNCOV
55
    ]
×
UNCOV
56
)]
×
57

58
class RelationMultiple
59
{
60
    #[ApiProperty(identifier: true)]
61
    public ?int $id = null;
62
    public ?Dummy $first = null;
63
    public ?Dummy $second = null;
64
}
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

© 2026 Coveralls, Inc