UserTest.php in Display Suite 8.4
File
tests/src/Functional/UserTest.php
View source
<?php
namespace Drupal\Tests\ds\Functional;
class UserTest extends TestBase {
public function testCompatibility() {
$new_user = $this
->drupalCreateUser([
'access content',
]);
$this
->dsSelectLayout([], [], 'admin/config/people/accounts/display');
$fields = [
'fields[username][region]' => 'right',
];
$this
->dsConfigureUi($fields, 'admin/config/people/accounts/display');
$this
->drupalGet('user/' . $new_user
->id());
$this
->assertSession()
->responseContains('entity-label-class-' . $new_user
->label());
}
}