public function testGetRoleLabelsAsString() { $roleFoo = new Role('ROLE_FOO'); $roleFoo->setLabel('Role foo'); $this->group->addRole($roleFoo); $roleBar = new Role('ROLE_BAR'); $roleBar->setLabel('Role bar'); $this->group->addRole($roleBar); $this->assertEquals('Role foo, Role bar', $this->group->getRoleLabelsAsString()); }
/** * {@inheritDoc} */ public function getRoleLabelsAsString() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRoleLabelsAsString', array()); return parent::getRoleLabelsAsString(); }