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

api-platform / core / 6547502777

17 Oct 2023 12:56PM UTC coverage: 37.353% (-0.008%) from 37.361%
6547502777

push

github

web-flow
fix(state): add link header processor without links (#5888)

fixes #5886

7 of 7 new or added lines in 2 files covered. (100.0%)

10265 of 27481 relevant lines covered (37.35%)

20.02 hits per line

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

0.0
/src/State/Tests/Processor/AddLinkHeaderProcessorTest.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\State\Tests\Processor;
15

16
use ApiPlatform\Metadata\Get;
17
use ApiPlatform\State\Processor\AddLinkHeaderProcessor;
18
use ApiPlatform\State\ProcessorInterface;
19
use PHPUnit\Framework\TestCase;
20

21
class AddLinkHeaderProcessorTest extends TestCase
22
{
23
    public function testWithoutLinks(): void
24
    {
25
        $data = new \stdClass();
×
26
        $operation = new Get();
×
27
        $decorated = $this->createStub(ProcessorInterface::class);
×
28
        $decorated->method('process')->willReturn($data);
×
29
        $processor = new AddLinkHeaderProcessor($decorated);
×
30
        $this->assertEquals($data, $processor->process($data, $operation));
×
31
    }
32
}
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