update
This commit is contained in:
@@ -46,6 +46,7 @@ class UmamiMultilingualInstallTest extends InstallerTestBase {
|
||||
*
|
||||
* @param string $langcode
|
||||
* The language code.
|
||||
*
|
||||
* @return string
|
||||
* Contents for the test .po file.
|
||||
*/
|
||||
|
||||
@@ -28,12 +28,15 @@ class MinimalTest extends BrowserTestBase {
|
||||
public function testMinimal() {
|
||||
$this->drupalGet('');
|
||||
// Check the login block is present.
|
||||
$this->assertLink(t('Create new account'));
|
||||
$this->assertSession()->linkExists(t('Create new account'));
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
// Create a user to test tools and navigation blocks for logged in users
|
||||
// with appropriate permissions.
|
||||
$user = $this->drupalCreateUser(['access administration pages', 'administer content types']);
|
||||
$user = $this->drupalCreateUser([
|
||||
'access administration pages',
|
||||
'administer content types',
|
||||
]);
|
||||
$this->drupalLogin($user);
|
||||
$this->drupalGet('');
|
||||
$this->assertText(t('Tools'));
|
||||
|
||||
@@ -38,7 +38,7 @@ class StandardTest extends BrowserTestBase {
|
||||
*/
|
||||
public function testStandard() {
|
||||
$this->drupalGet('');
|
||||
$this->assertLink(t('Contact'));
|
||||
$this->assertSession()->linkExists(t('Contact'));
|
||||
$this->clickLink(t('Contact'));
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user