"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/WorkflowGuardListenerPassTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

WorkflowGuardListenerPassTest.php  (phplist-3.4.5.tgz):WorkflowGuardListenerPassTest.php  (phplist-3.4.6.tgz)
skipping to change at line 55 skipping to change at line 55
$this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class); $this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class);
$this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class); $this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class);
$this->container->register('security.role_hierarchy', RoleHierarchy::cla ss); $this->container->register('security.role_hierarchy', RoleHierarchy::cla ss);
$this->container->register('validator', ValidatorInterface::class); $this->container->register('validator', ValidatorInterface::class);
$this->compilerPass->process($this->container); $this->compilerPass->process($this->container);
$this->assertFalse($this->container->hasParameter('workflow.has_guard_li steners')); $this->assertFalse($this->container->hasParameter('workflow.has_guard_li steners'));
} }
/**
* @expectedException \Symfony\Component\DependencyInjection\Exception\Logic
Exception
* @expectedExceptionMessage The "security.token_storage" service is needed
to be able to use the workflow guard listener.
*/
public function testExceptionIfTheTokenStorageServiceIsNotPresent() public function testExceptionIfTheTokenStorageServiceIsNotPresent()
{ {
$this->expectException('Symfony\Component\DependencyInjection\Exception\
LogicException');
$this->expectExceptionMessage('The "security.token_storage" service is n
eeded to be able to use the workflow guard listener.');
$this->container->setParameter('workflow.has_guard_listeners', true); $this->container->setParameter('workflow.has_guard_listeners', true);
$this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class); $this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class);
$this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class); $this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class);
$this->container->register('security.role_hierarchy', RoleHierarchy::cla ss); $this->container->register('security.role_hierarchy', RoleHierarchy::cla ss);
$this->compilerPass->process($this->container); $this->compilerPass->process($this->container);
} }
/**
* @expectedException \Symfony\Component\DependencyInjection\Exception\Logic
Exception
* @expectedExceptionMessage The "security.authorization_checker" service is
needed to be able to use the workflow guard listener.
*/
public function testExceptionIfTheAuthorizationCheckerServiceIsNotPresent() public function testExceptionIfTheAuthorizationCheckerServiceIsNotPresent()
{ {
$this->expectException('Symfony\Component\DependencyInjection\Exception\
LogicException');
$this->expectExceptionMessage('The "security.authorization_checker" serv
ice is needed to be able to use the workflow guard listener.');
$this->container->setParameter('workflow.has_guard_listeners', true); $this->container->setParameter('workflow.has_guard_listeners', true);
$this->container->register('security.token_storage', TokenStorageInterfa ce::class); $this->container->register('security.token_storage', TokenStorageInterfa ce::class);
$this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class); $this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class);
$this->container->register('security.role_hierarchy', RoleHierarchy::cla ss); $this->container->register('security.role_hierarchy', RoleHierarchy::cla ss);
$this->compilerPass->process($this->container); $this->compilerPass->process($this->container);
} }
/**
* @expectedException \Symfony\Component\DependencyInjection\Exception\Logic
Exception
* @expectedExceptionMessage The "security.authentication.trust_resolver" se
rvice is needed to be able to use the workflow guard listener.
*/
public function testExceptionIfTheAuthenticationTrustResolverServiceIsNotPre sent() public function testExceptionIfTheAuthenticationTrustResolverServiceIsNotPre sent()
{ {
$this->expectException('Symfony\Component\DependencyInjection\Exception\
LogicException');
$this->expectExceptionMessage('The "security.authentication.trust_resolv
er" service is needed to be able to use the workflow guard listener.');
$this->container->setParameter('workflow.has_guard_listeners', true); $this->container->setParameter('workflow.has_guard_listeners', true);
$this->container->register('security.token_storage', TokenStorageInterfa ce::class); $this->container->register('security.token_storage', TokenStorageInterfa ce::class);
$this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class); $this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class);
$this->container->register('security.role_hierarchy', RoleHierarchy::cla ss); $this->container->register('security.role_hierarchy', RoleHierarchy::cla ss);
$this->compilerPass->process($this->container); $this->compilerPass->process($this->container);
} }
/**
* @expectedException \Symfony\Component\DependencyInjection\Exception\Logic
Exception
* @expectedExceptionMessage The "security.role_hierarchy" service is needed
to be able to use the workflow guard listener.
*/
public function testExceptionIfTheRoleHierarchyServiceIsNotPresent() public function testExceptionIfTheRoleHierarchyServiceIsNotPresent()
{ {
$this->expectException('Symfony\Component\DependencyInjection\Exception\
LogicException');
$this->expectExceptionMessage('The "security.role_hierarchy" service is
needed to be able to use the workflow guard listener.');
$this->container->setParameter('workflow.has_guard_listeners', true); $this->container->setParameter('workflow.has_guard_listeners', true);
$this->container->register('security.token_storage', TokenStorageInterfa ce::class); $this->container->register('security.token_storage', TokenStorageInterfa ce::class);
$this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class); $this->container->register('security.authorization_checker', Authorizati onCheckerInterface::class);
$this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class); $this->container->register('security.authentication.trust_resolver', Aut henticationTrustResolverInterface::class);
$this->compilerPass->process($this->container); $this->compilerPass->process($this->container);
} }
} }
 End of changes. 8 change blocks. 
24 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)