Skip to content

Commit

Permalink
Fixed coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Dec 17, 2024
1 parent b9233d1 commit 3cf5ceb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/Functional/YourExtensionFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Drupal\Tests\your_extension\Functional;

use Drupal\Core\Session\AccountInterface;
use Drupal\Tests\BrowserTestBase;

/**
Expand All @@ -30,6 +31,9 @@ class YourExtensionFunctionalTest extends BrowserTestBase {
*/
public function testGetText() {
$user = $this->createUser(['administer site configuration']);
if (!$user instanceof AccountInterface) {
throw new \Exception('User could not be created.');
}
$this->drupalLogin($user);

$this->drupalGet('admin/config/development/your-extension');
Expand Down

0 comments on commit 3cf5ceb

Please sign in to comment.