public function testGetLabel() { $admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\\Entity\\Post', 'SonataNewsBundle:PostAdmin'); $this->assertNull($admin->getLabel()); $admin->setLabel('FooLabel'); $this->assertSame('FooLabel', $admin->getLabel()); }