Commit e81e2f9f authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

CS.

parent 570d3e70
No related merge requests found
Showing with 19 additions and 13 deletions
+19 -13
...@@ -27,5 +27,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; ...@@ -27,5 +27,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/ */
class IrsteaApiMetadataBundle extends Bundle class IrsteaApiMetadataBundle extends Bundle
{ {
} }
...@@ -22,7 +22,6 @@ namespace Irstea\ApiMetadata\Tests\Fixtures; ...@@ -22,7 +22,6 @@ namespace Irstea\ApiMetadata\Tests\Fixtures;
use ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle; use ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle;
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Irstea\ApiMetadata\Bridge\Symfony\Bundle\ApiMetadataBundle;
use Irstea\ApiMetadata\Bridge\Symfony\Bundle\IrsteaApiMetadataBundle; use Irstea\ApiMetadata\Bridge\Symfony\Bundle\IrsteaApiMetadataBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
...@@ -96,9 +95,9 @@ class TestKernel extends Kernel ...@@ -96,9 +95,9 @@ class TestKernel extends Kernel
$c->loadFromExtension('api_platform', [ $c->loadFromExtension('api_platform', [
'mapping' => [ 'mapping' => [
'paths' => [ 'paths' => [
__DIR__ . '/Entity' __DIR__ . '/Entity',
] ],
] ],
]); ]);
} }
......
<?php declare(strict_types=1); <?php declare(strict_types=1);
/** /*
* This file is part of "irstea/api-metadata".
*
* Copyright (C) 2019 IRSTEA * Copyright (C) 2019 IRSTEA
* All rights reserved.
* *
* @copyright 2019 IRSTEA * This program is free software: you can redistribute it and/or modify it under
* @author guillaume.perreal * the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License and the GNU
* Lesser General Public License along with this program. If not, see
* <https://www.gnu.org/licenses/>.
*/ */
namespace Irstea\ApiMetadata\Tests\Functional; namespace Irstea\ApiMetadata\Tests\Functional;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/** /**
* Class ReflectionTest * Class ReflectionTest.
* *
* @covers \Irstea\ApiMetadata\Factory\ResourceTypeFactory * @covers \Irstea\ApiMetadata\Factory\ResourceTypeFactory
* @covers \Irstea\ApiMetadata\DataProvider\ResourceMetadataProvider * @covers \Irstea\ApiMetadata\DataProvider\ResourceMetadataProvider
...@@ -31,5 +40,4 @@ class ReflectionTest extends WebTestCase ...@@ -31,5 +40,4 @@ class ReflectionTest extends WebTestCase
self::assertTrue($response->isOk()); self::assertTrue($response->isOk());
self::assertJson($response->getContent()); self::assertJson($response->getContent());
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment