Apply new CS rules on the news-on-homepage feature

This commit is contained in:
2024-01-15 20:57:51 +01:00
parent 8cc5859a3b
commit f5879cf275
7 changed files with 46 additions and 17 deletions

View File

@@ -1,19 +1,24 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Controller;
use Chill\MainBundle\Controller\NewsItemApiController;
use Chill\MainBundle\Entity\NewsItem;
use Chill\MainBundle\Pagination\PaginatorFactory;
use Chill\MainBundle\Repository\NewsItemRepository;
use Chill\MainBundle\Test\PrepareClientTrait;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Serializer\SerializerInterface;
/**
* @internal
*
* @coversNothing
*/
class NewsItemApiControllerTest extends WebTestCase
{
use PrepareClientTrait;
@@ -31,5 +36,4 @@ class NewsItemApiControllerTest extends WebTestCase
$this->assertArrayHasKey('title', $responseContent['data'][0]);
}
}
}