Unverified Commit 6af996bb authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3231781 by longwave, mondrake, Feuerwagen, larowlan, TR, nlisgo,...

Issue #3231781 by longwave, mondrake, Feuerwagen, larowlan, TR, nlisgo, xxAlHixx, DuaelFr, GoZ, benjy, no_angel, Mac_Weber: [D9.3 beta - w/c Nov 8, 2021] Remove remaining uses of t() in tests

(cherry picked from commit a83a7a78)
parent e125ce28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ protected function createEntity() {
    // Create a "Llama" aggregator feed item.
    $item = Item::create([
      'fid' => $feed->id(),
      'title' => t('Llama'),
      'title' => 'Llama',
      'path' => 'https://www.drupal.org/',
    ]);
    $item->save();
@@ -77,7 +77,7 @@ public function testEntityCreation() {
    // Now create a feed item in that feed.
    Item::create([
      'fid' => $this->entity->getFeedId(),
      'title' => t('Llama 2'),
      'title' => 'Llama 2',
      'path' => 'https://groups.drupal.org/',
    ])->save();

+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ protected function setUp(): void {
   */
  public function testEntityCreation() {
    $entity = Item::create([
      'title' => t('Llama 2'),
      'title' => 'Llama 2',
      'path' => 'https://groups.drupal.org/',
    ]);
    $violations = $entity->validate();
+2 −2
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public function testBlockInterface() {
      ],
      'admin_label' => [
        '#type' => 'item',
        '#title' => t('Block description'),
        '#title' => 'Block description',
        '#plain_text' => $definition['admin_label'],
      ],
      'label' => [
@@ -78,7 +78,7 @@ public function testBlockInterface() {
      'context_mapping' => [],
      'display_message' => [
        '#type' => 'textfield',
        '#title' => t('Display message'),
        '#title' => 'Display message',
        '#default_value' => 'My custom display message.',
      ],
    ];
+2 −5
Original line number Diff line number Diff line
@@ -370,11 +370,8 @@ public function testTwoPagers() {
      // Set comments to one per page so that we are able to test paging without
      // needing to insert large numbers of comments.
      $this->setCommentsPerPage(1, $field_name);
      for ($i = 0; $i < 3; $i++) {
        $comment = t('Comment @count on field @field', [
          '@count' => $i + 1,
          '@field' => $field_name,
        ]);
      for ($i = 1; $i <= 4; $i++) {
        $comment = "Comment $i on field $field_name";
        $comments[] = $this->postComment($node, $comment, $comment, TRUE, $field_name);
      }
    }
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ protected function setUp(): void {
    parent::setUp();
    $node_type = NodeType::create([
      'type' => 'article',
      'name' => t('Article'),
      'name' => 'Article',
    ]);
    $node_type->save();
    $this->nodeAuthor = $this->drupalCreateUser([
Loading