Skip to content
Snippets Groups Projects

Resolve #3353778 "Argument type"

Open suumit kumar requested to merge issue/drupal-3353778:3353778-argument-type into 11.x
4 unresolved threads

Closes #3353778

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Drupal\Tests\update\Functional;
6
7 use Drupal\Core\Url;
8 use Drupal\Tests\BrowserTestBase;
9
10 /**
11 * Update module regression tests.
12 *
13 * @group update
14 *
15 * @internal
  • 32 protected function setUp(): void {
    33 parent::setUp();
    34
    35 // Create an admin user.
    36 $admin_user = $this->drupalCreateUser([
    37 'administer site configuration',
    38 'access administration pages',
    39 ]);
    40 $this->drupalLogin($admin_user);
    41
    42 }
    43
    44 /**
    45 * Ensure `notification.emails` config set as a string doesn't throw an error.
    46 *
    47 * @see https://www.drupal.org/project/drupal/issues/3353778
    • We don't normally include ticket numbers in our tests

    • The same here. I just followed the naming approach in regression tests, like JsonApiRegressionTest, BigPipeRegressionTest or RegressionTest. The issue link is present at least in JsonApiRegressionTest and BigPipeRegressionTest, and the issue number in the method name is present in all of them. It seemed strange to me at first, but I thought it was already discussed and agreed on.

    • Please register or sign in to reply
  • 34
    35 // Create an admin user.
    36 $admin_user = $this->drupalCreateUser([
    37 'administer site configuration',
    38 'access administration pages',
    39 ]);
    40 $this->drupalLogin($admin_user);
    41
    42 }
    43
    44 /**
    45 * Ensure `notification.emails` config set as a string doesn't throw an error.
    46 *
    47 * @see https://www.drupal.org/project/drupal/issues/3353778
    48 */
    49 public function testNotificationEmailsAsStringDoesNotThrowAnErrorFromIssue3353778(): void {
  • Please register or sign in to reply
    Loading