Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / dependency-injection / Tests / DefinitionDecoratorTest.php
index 544c80063fedab1f372f1b01c01e54ba01549837..92a212ec416a61f0b0b8635f5d77135eee6f19e7 100644 (file)
@@ -14,6 +14,9 @@ namespace Symfony\Component\DependencyInjection\Tests;
 use PHPUnit\Framework\TestCase;
 use Symfony\Component\DependencyInjection\DefinitionDecorator;
 
+/**
+ * @group legacy
+ */
 class DefinitionDecoratorTest extends TestCase
 {
     public function testConstructor()
@@ -75,9 +78,9 @@ class DefinitionDecoratorTest extends TestCase
         $def = new DefinitionDecorator('foo');
 
         $this->assertFalse($def->isAutowired());
-        $this->assertSame($def, $def->setAutowired(false));
-        $this->assertFalse($def->isAutowired());
-        $this->assertEquals(array('autowire' => true), $def->getChanges());
+        $this->assertSame($def, $def->setAutowired(true));
+        $this->assertTrue($def->isAutowired());
+        $this->assertSame(array('autowired' => true), $def->getChanges());
     }
 
     public function testSetArgument()