function EntityTypeTest::testGetPluralLabelDefault

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGetPluralLabelDefault()
  2. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGetPluralLabelDefault()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGetPluralLabelDefault()

@covers ::getPluralLabel

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php, line 386

Class

EntityTypeTest
@coversDefaultClass \Drupal\Core\Entity\EntityType[[api-linebreak]] @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function testGetPluralLabelDefault() : void {
  $entity_type = $this->setUpEntityType([
    'label' => 'Entity test Plural',
  ]);
  $entity_type->setStringTranslation($this->getStringTranslationStub());
  $this->assertEquals('entity test plural entities', $entity_type->getPluralLabel());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.