/** * testSetGet * * @covers \RcmUser\Acl\Entity\AclRole * * @return void */ public function testSetGet() { $aclRole = new AclRole(); $parentAclRole = new AclRole('ppp'); $parentAclRole->setRoleId('ppp'); $role = 'testrole'; $prole = 'parenttestrole'; $desc = 'Descript'; $aclRole->setRoleId($role); $aclRole->setParentRoleId($prole); $aclRole->setDescription($desc); $this->assertTrue($aclRole->getRoleId() === $role, 'Setter or getter failed.'); $this->assertTrue($aclRole->getRoleId() === $role, 'Setter or getter failed.'); $this->assertTrue($aclRole->getParentRoleId() === $prole, 'Setter or getter failed.'); $this->assertTrue($aclRole->getParent() === $prole, 'Setter or getter failed.'); $this->assertTrue($aclRole->getDescription() === $desc, 'Setter or getter failed.'); $aclRole->setParentRole($parentAclRole); $this->assertTrue($aclRole->getParent() === $parentAclRole, 'Setter or getter failed.'); }