$node = $def->getNode();
$this->assertEquals(array('foo', 'bar'), $node->getValues());
}
+
+ public function testSetDeprecated()
+ {
+ $def = new EnumNodeDefinition('foo');
+ $def->values(array('foo', 'bar'));
+ $def->setDeprecated('The "%path%" node is deprecated.');
+
+ $node = $def->getNode();
+
+ $this->assertTrue($node->isDeprecated());
+ $this->assertSame('The "foo" node is deprecated.', $def->getNode()->getDeprecationMessage($node->getName(), $node->getPath()));
+ }
}