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

api-platform / core / 14304969316

07 Apr 2025 08:53AM UTC coverage: 7.281% (-1.2%) from 8.52%
14304969316

push

github

soyuka
Merge 4.1

13 of 244 new or added lines in 12 files covered. (5.33%)

222 existing lines in 2 files now uncovered.

10878 of 149412 relevant lines covered (7.28%)

6.5 hits per line

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

0.0
/tests/Fixtures/TestBundle/Document/SecuredDummyCollectionParent.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\Document;
15

16
use ApiPlatform\Metadata\ApiResource;
17
use ApiPlatform\Metadata\GraphQl\Query;
18
use ApiPlatform\Metadata\GraphQl\QueryCollection;
19
use ApiPlatform\Metadata\NotExposed;
20
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
21

22
/**
23
 * Secured resource.
24
 */
25
#[ApiResource(
NEW
26
    operations: [
×
NEW
27
        new NotExposed(),
×
NEW
28
    ],
×
NEW
29
    graphQlOperations: [
×
NEW
30
        new Query(),
×
NEW
31
        new QueryCollection(),
×
NEW
32
    ],
×
NEW
33
    security: 'is_granted(\'ROLE_USER\')'
×
NEW
34
)]
×
35
#[ODM\Document]
36
class SecuredDummyCollectionParent
37
{
38
    #[ODM\Id(strategy: 'INCREMENT', type: 'int')]
39
    public ?int $id = null;
40

41
    #[ODM\ReferenceOne(targetDocument: SecuredDummyCollection::class)]
42
    public ?SecuredDummyCollection $child = null;
43
}
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