diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/FormPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/FormPassTest.php
index d7dc9d8a347da..6a4561f882940 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/FormPassTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/FormPassTest.php
@@ -59,46 +59,8 @@ public function testAddTaggedTypes()
$extDefinition = $container->getDefinition('form.extension');
$this->assertEquals(array(
- // As of Symfony 2.8, the class is used to look up types
__CLASS__.'_Type1' => 'my.type1',
__CLASS__.'_Type2' => 'my.type2',
- // Before Symfony 2.8, the service ID was used as default alias
- 'my.type1' => 'my.type1',
- 'my.type2' => 'my.type2',
- ), $extDefinition->getArgument(1));
- }
-
- public function testUseCustomAliasIfSet()
- {
- $container = new ContainerBuilder();
- $container->addCompilerPass(new FormPass());
-
- $extDefinition = new Definition('Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension');
- $extDefinition->setArguments(array(
- new Reference('service_container'),
- array(),
- array(),
- array(),
- ));
-
- $definition1 = new Definition(__CLASS__.'_Type1');
- $definition1->addTag('form.type', array('alias' => 'mytype1'));
- $definition2 = new Definition(__CLASS__.'_Type2');
- $definition2->addTag('form.type', array('alias' => 'mytype2'));
-
- $container->setDefinition('form.extension', $extDefinition);
- $container->setDefinition('my.type1', $definition1);
- $container->setDefinition('my.type2', $definition2);
-
- $container->compile();
-
- $extDefinition = $container->getDefinition('form.extension');
-
- $this->assertEquals(array(
- __CLASS__.'_Type1' => 'my.type1',
- __CLASS__.'_Type2' => 'my.type2',
- 'mytype1' => 'my.type1',
- 'mytype2' => 'my.type2',
), $extDefinition->getArgument(1));
}
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy