예제 #1
0
 public function testGetBaseCodeRoute()
 {
     $admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\\Entity\\Post', 'SonataNewsBundle:PostAdmin');
     $this->assertSame('', $admin->getBaseCodeRoute());
     $admin->setBaseCodeRoute('foo');
     $this->assertSame('foo', $admin->getBaseCodeRoute());
 }