mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
update php-cs-fixer and rector + fix rules
This commit is contained in:
@@ -58,7 +58,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->prophet = new \Prophecy\Prophet();
|
||||
$this->prophet = new Prophet();
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
@@ -370,7 +370,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
$user = $this->prepareUser([]);
|
||||
|
||||
$authorizationChecker = $this->prophet->prophesize();
|
||||
$authorizationChecker->willImplement(\Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface::class);
|
||||
$authorizationChecker->willImplement(AuthorizationCheckerInterface::class);
|
||||
$authorizationChecker->isGranted('CHILL_STAT_DUMMY', $center)
|
||||
->willReturn(true);
|
||||
|
||||
@@ -399,7 +399,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
$user = $this->prepareUser([]);
|
||||
|
||||
$authorizationChecker = $this->prophet->prophesize();
|
||||
$authorizationChecker->willImplement(\Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface::class);
|
||||
$authorizationChecker->willImplement(AuthorizationCheckerInterface::class);
|
||||
$authorizationChecker->isGranted('CHILL_STAT_DUMMY', $center)
|
||||
->willReturn(true);
|
||||
$authorizationChecker->isGranted('CHILL_STAT_DUMMY', $centerB)
|
||||
@@ -435,7 +435,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
);
|
||||
|
||||
$export = $this->prophet->prophesize();
|
||||
$export->willImplement(\Chill\MainBundle\Export\ExportInterface::class);
|
||||
$export->willImplement(ExportInterface::class);
|
||||
$export->requiredRole()->willReturn('CHILL_STAT_DUMMY');
|
||||
|
||||
$result = $exportManager->isGrantedForElement($export->reveal(), null, []);
|
||||
|
Reference in New Issue
Block a user