Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
83cb3c87
Unverified
Commit
83cb3c87
authored
Feb 10, 2020
by
Alex Pott
Browse files
Issue
#3106215
by Hardik_Patel_12: Unused private method updateAccess()
parent
4c12d608
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/user/tests/src/Functional/UserBlocksTest.php
View file @
83cb3c87
...
...
@@ -3,7 +3,6 @@
namespace
Drupal\Tests\user\Functional
;
use
Drupal\Core\Url
;
use
Drupal\Core\Database\Database
;
use
Drupal\dynamic_page_cache
\
EventSubscriber\DynamicPageCacheSubscriber
;
use
Drupal\Tests\BrowserTestBase
;
...
...
@@ -128,14 +127,4 @@ public function testUserLoginBlock() {
$this
->
assertNoText
(
t
(
'Unrecognized username or password. Forgot your password?'
));
}
/**
* Updates the access column for a user.
*/
private
function
updateAccess
(
$uid
,
$access
=
REQUEST_TIME
)
{
Database
::
getConnection
()
->
update
(
'users_field_data'
)
->
condition
(
'uid'
,
$uid
)
->
fields
([
'access'
=>
$access
])
->
execute
();
}
}
Alex Pott
@alexpott
mentioned in commit
791a385a
·
Feb 10, 2020
mentioned in commit
791a385a
mentioned in commit 791a385ae0fa7e178d1933381bc7c6542875d1bd
Toggle commit list
Alex Pott
@alexpott
mentioned in commit
b3eb881b
·
Feb 10, 2020
mentioned in commit
b3eb881b
mentioned in commit b3eb881ba34c62a1149811b0394a8545a61683d7
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment