Update to Drupal 8.0.5. For more information, see https://www.drupal.org/node/2679347
This commit is contained in:
parent
2a9f1f148d
commit
fd3b12cf27
251 changed files with 5439 additions and 957 deletions
|
@ -79,8 +79,10 @@ class PrivateTempStore {
|
|||
* of key/value pairs.
|
||||
* @param \Drupal\Core\Lock\LockBackendInterface $lock_backend
|
||||
* The lock object used for this data.
|
||||
* @param mixed $owner
|
||||
* The owner key to store along with the data (e.g. a user or session ID).
|
||||
* @param \Drupal\Core\Session\AccountProxyInterface $current_user
|
||||
* The current user account.
|
||||
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
|
||||
* The request stack.
|
||||
* @param int $expire
|
||||
* The time to live for items, in seconds.
|
||||
*/
|
||||
|
|
|
@ -80,6 +80,7 @@ class UserAdminListingTest extends WebTestBase {
|
|||
'status' => (string) $account->td[1],
|
||||
'roles' => $roles,
|
||||
'member_for' => (string) $account->td[3],
|
||||
'last_access' => (string) $account->td[4],
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -92,6 +93,8 @@ class UserAdminListingTest extends WebTestBase {
|
|||
$this->assertEqual($result_accounts[$role_account_name]['roles'], $expected_roles, 'Ensure roles are listed properly.');
|
||||
|
||||
$this->assertEqual($result_accounts[$timestamp_user]['member_for'], \Drupal::service('date.formatter')->formatTimeDiffSince($accounts[$timestamp_user]->created->value), 'Ensure the right member time is displayed.');
|
||||
|
||||
$this->assertEqual($result_accounts[$timestamp_user]['last_access'], 'never', 'Ensure the last access time is "never".');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@ class UserListBuilder extends EntityListBuilder {
|
|||
'#items' => $users_roles,
|
||||
);
|
||||
$row['member_for'] = $this->dateFormatter->formatTimeDiffSince($entity->getCreatedTime());
|
||||
$row['access'] = $entity->access ? $this->t('@time ago', array('@time' => $this->dateFormatter->formatTimeDiffSince($entity->getLastAccessedTime()))) : t('never');
|
||||
$row['access'] = $entity->getLastAccessedTime() ? $this->t('@time ago', array('@time' => $this->dateFormatter->formatTimeDiffSince($entity->getLastAccessedTime()))) : t('never');
|
||||
return $row + parent::buildRow($entity);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue