/**
  * Test Is Logout Link False
  *
  * @return void
  * @covers \RcmDynamicNavigation\Model\NavLink::isLogoutLink
  */
 public function testIsLogoutLinkFalse()
 {
     $class = 'someClass someAdditionalClass ';
     $this->link->setClass($class);
     $this->assertFalse($this->link->isLogoutLink());
 }
 /**
  * Check an individual link
  *
  * @param NavLink $link Link to check
  *
  * @return bool
  */
 public function checkLink(NavLink $link)
 {
     $siteAdmin = $this->permissionChecks->siteAdminCheck($this->currentSite);
     $userHasPermissions = $this->usersRoleHasPermissions($link->getPermissions());
     if ($link->isLoginLink() && $this->permissionChecks->isCurrentUserLoggedIn()) {
         $link->addSystemClass('HiddenLink');
     } elseif ($link->isLogoutLink() && !$this->permissionChecks->isCurrentUserLoggedIn()) {
         $link->addSystemClass('HiddenLink');
     } elseif ($siteAdmin && !$userHasPermissions) {
         $link->addSystemClass('HiddenLink');
     }
     if ($siteAdmin || $userHasPermissions) {
         return true;
     }
     return false;
 }