public function testTranslatableValue()
{
$config = ['feeds' => ['article' => ['title' => 'My title', 'description' => 'My description', 'link' => 'http://github.com/eko/FeedBundle', 'encoding' => 'utf-8', 'author' => 'Vincent']]];
$translator = $this->getMock('Symfony\\Component\\Translation\\TranslatorInterface');
$translator->expects($this->any())->method('trans')->will($this->returnValue('translatable-value'));
$formatters = ['atom' => new AtomFormatter($translator, 'test')];
$manager = new FeedManager($this->getMockRouter(), $config, $formatters);
$feed = $manager->get('article');
$feed->add(new FakeRoutedItemInterfaceEntity());
$feed->addItemField(new ItemField('fake_custom', 'getFeedItemCustom', ['translatable' => true]));
$output = $feed->render('atom');
$this->assertContains('<fake_custom>translatable-value</fake_custom>', $output);
}