/**
  * Currently, "db_mountpoints" is not bound to the BackendUser model, so
  * we need to bind "the old way".
  *
  * @param    BackendUser $backendUser The backend user.
  * @param    int         $uid         The uid of the root page.
  * @return    boolean|\mysqli_result|object MySQLi result object / DBAL object
  */
 private function fixDataBaseMountPointForBackendUser(BackendUser $backendUser, $uid)
 {
     return $this->database->exec_UPDATEquery('be_users', 'uid=' . $backendUser->getUid(), ['db_mountpoints' => intval($uid)]);
 }
示例#2
0
 /**
  * @test
  */
 public function setLastLoginDateAndTimeSetsLastLoginDateAndTime()
 {
     $date = new \DateTime();
     $this->subject->setLastLoginDateAndTime($date);
     $this->assertSame($date, $this->subject->getLastLoginDateAndTime());
 }