DemoUmamiProfileTest
class DemoUmamiProfileTest extends BrowserTestBase (View source)
Tests demo_umami profile.
Traits
Properties
| protected | $profile | {@inheritdoc} |
Methods
{@inheritdoc}
Tests demo_umami profile warnings shown on Status Page.
Tests the profile supplied configuration is the same after installation.
Asserts that the default configuration matches active configuration.
Tests that the users can log in with the admin password selected at install.
Tests the successful editing of nodes by admin.
Tests that the Umami theme is available on the Appearance page.
Tests that the toolbar warning only appears on the admin pages.
Logs in a user using the Mink controlled browser using a password.
Details
protected
installParameters()
{@inheritdoc}
testWarningsOnStatusPage()
Tests demo_umami profile warnings shown on Status Page.
testConfig()
Tests the profile supplied configuration is the same after installation.
protected void
assertDefaultConfig(StorageInterface $default_config_storage, StorageInterface $active_config_storage)
Asserts that the default configuration matches active configuration.
testUser()
Tests that the users can log in with the admin password selected at install.
testEditNodesByAdmin()
Tests the successful editing of nodes by admin.
testAppearance()
Tests that the Umami theme is available on the Appearance page.
testDemonstrationWarningMessage()
Tests that the toolbar warning only appears on the admin pages.
protected
drupalLoginWithPassword(AccountInterface $account, string $password)
Logs in a user using the Mink controlled browser using a password.
If a user is already logged in, then the current user is logged out before logging in the specified user.
Please note that neither the current user nor the passed-in user object is populated with data of the logged in user. If you need full access to the user object after logging in, it must be updated manually. If you also need access to the plain-text password of the user (set by drupalCreateUser()), e.g. to log in the same user again, then it must be re-assigned manually. For example: