diff --git a/core/modules/node/node.post_update.php b/core/modules/node/node.post_update.php index 5c5d74b..4138af0 100644 --- a/core/modules/node/node.post_update.php +++ b/core/modules/node/node.post_update.php @@ -8,7 +8,7 @@ use Drupal\node\Entity\NodeType; /** - * @addtogroup updates-8.2.x + * @addtogroup updates-8.3.x * @{ */ @@ -27,5 +27,5 @@ function node_post_update_plural_variants() { } /** - * @} End of "addtogroup updates-8.2.x". + * @} End of "addtogroup updates-8.3.x". */ diff --git a/core/modules/node/tests/src/Functional/NodeTypePluralLabelsTranslationTest.php b/core/modules/node/tests/src/Functional/NodeTypePluralLabelsTranslationTest.php index a420960..1898e1a 100644 --- a/core/modules/node/tests/src/Functional/NodeTypePluralLabelsTranslationTest.php +++ b/core/modules/node/tests/src/Functional/NodeTypePluralLabelsTranslationTest.php @@ -16,11 +16,9 @@ class NodeTypePluralLabelsTranslationTest extends BrowserTestBase { /** - * Modules to enable. - * - * @var array + * {@inheritdoc} */ - public static $modules = ['config_translation', 'field_ui', 'node']; + protected static $modules = ['config_translation', 'field_ui', 'node']; /** * {@inheritdoc} @@ -43,7 +41,7 @@ protected function setUp() { $plural_formula = $this->container->get('locale.plural.formula'); // Workaround to register the Romanian and English language formulae in - // state. Without this the number of plurals is not correctly parsed. + // state. Without this, the number of plurals is not correctly parsed. $po_header = new PoHeader('ro'); $plural = $po_header->parsePluralForms('nplurals=3; plural=((n==1)?(0):(((n==0)||(((n%100)>0)&&((n%100)<20)))?(1):2));\n'); $plural_formula->setPluralFormula('ro', $plural[0], $plural[1]); @@ -85,7 +83,7 @@ public function testNodeTypeTranslation() { 'label_count[1]' => '@count copii', 'label_count[2]' => '@count de copii', ]; - $this->drupalPostForm(NULL, $edit, t('Save and manage fields')); + $this->drupalPostForm(NULL, $edit, 'Save and manage fields'); $edit = [ 'translation[config_names][node.type.child][name]' => 'Child', @@ -94,7 +92,7 @@ public function testNodeTypeTranslation() { 'translation[config_names][node.type.child][label_count][0]' => '1 child', 'translation[config_names][node.type.child][label_count][1]' => '@count children', ]; - $this->drupalPostForm('admin/structure/types/manage/child/translate/en/add', $edit, t('Save translation')); + $this->drupalPostForm('admin/structure/types/manage/child/translate/en/add', $edit, 'Save translation'); /** @var \Drupal\node\NodeTypeInterface $node_type */ $node_type = NodeType::load('child'); @@ -124,7 +122,7 @@ public function testNodeTypeTranslation() { // Clear the count label second variant to test variant delta preserving. $edit = ['label_count[1]' => '']; - $this->drupalPostForm($node_type->urlInfo('edit-form'), $edit, t('Save content type')); + $this->drupalPostForm($node_type->urlInfo('edit-form'), $edit, 'Save content type'); $node_type = NodeType::load('child');