|
@@ -951,6 +951,9 @@ class AdminTest extends PHPUnit_Framework_TestCase
|
|
$this->assertSame('foo', $admin->getTranslationDomain());
|
|
$this->assertSame('foo', $admin->getTranslationDomain());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @group legacy
|
|
|
|
+ */
|
|
public function testGetTranslator()
|
|
public function testGetTranslator()
|
|
{
|
|
{
|
|
$admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\Entity\Post', 'SonataNewsBundle:PostAdmin');
|
|
$admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\Entity\Post', 'SonataNewsBundle:PostAdmin');
|
|
@@ -1204,6 +1207,9 @@ class AdminTest extends PHPUnit_Framework_TestCase
|
|
$this->assertSame('sonata.post.admin.post', $admin->getObjectIdentifier());
|
|
$this->assertSame('sonata.post.admin.post', $admin->getObjectIdentifier());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @group legacy
|
|
|
|
+ */
|
|
public function testTrans()
|
|
public function testTrans()
|
|
{
|
|
{
|
|
$admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\Entity\Post', 'SonataNewsBundle:PostAdmin');
|
|
$admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\Entity\Post', 'SonataNewsBundle:PostAdmin');
|
|
@@ -1221,7 +1227,7 @@ class AdminTest extends PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @group Legacy
|
|
|
|
|
|
+ * @group legacy
|
|
*/
|
|
*/
|
|
public function testTransWithMessageDomain()
|
|
public function testTransWithMessageDomain()
|
|
{
|
|
{
|
|
@@ -1238,6 +1244,9 @@ class AdminTest extends PHPUnit_Framework_TestCase
|
|
$this->assertSame('fooTranslated', $admin->trans('foo', array('name' => 'Andrej'), 'fooMessageDomain'));
|
|
$this->assertSame('fooTranslated', $admin->trans('foo', array('name' => 'Andrej'), 'fooMessageDomain'));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @group legacy
|
|
|
|
+ */
|
|
public function testTransChoice()
|
|
public function testTransChoice()
|
|
{
|
|
{
|
|
$admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\Entity\Post', 'SonataNewsBundle:PostAdmin');
|
|
$admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\Entity\Post', 'SonataNewsBundle:PostAdmin');
|
|
@@ -1255,7 +1264,7 @@ class AdminTest extends PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @group Legacy
|
|
|
|
|
|
+ * @group legacy
|
|
*/
|
|
*/
|
|
public function testTransChoiceWithMessageDomain()
|
|
public function testTransChoiceWithMessageDomain()
|
|
{
|
|
{
|