Issue #3151520 by adityasingh, pavnish, daffie, alexpott: Replace the database...
Issue #3151520 by adityasingh, pavnish, daffie, alexpott: Replace the database query with an entity query in UserInstallTest
(cherry picked from commit 5ded5317)
* Test that the initial users have correct values.
*/
publicfunctiontestUserInstall(){
$result=Database::getConnection()->query('SELECT u.uid, u.uuid, u.langcode, uf.status FROM {users} u INNER JOIN {users_field_data} uf ON u.uid=uf.uid ORDER BY u.uid')
->fetchAllAssoc('uid');
$anon=$result[0];
$admin=$result[1];
$this->assertFalse(empty($anon->uuid),'Anon user has a UUID');
$this->assertFalse(empty($admin->uuid),'Admin user has a UUID');