Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webflo’s picture

Status: Active » Needs review
FileSize
3.98 KB

Status: Needs review » Needs work

The last submitted patch, config-translation-ui-tests-2098675-1.patch, failed testing.

webflo’s picture

Status: Needs work » Needs review
FileSize
4.44 KB

Status: Needs review » Needs work

The last submitted patch, config-translation-ui-tests-2098675-3.patch, failed testing.

webflo’s picture

Status: Needs work » Needs review
Gábor Hojtsy’s picture

Status: Needs review » Needs work
  1. +++ b/lib/Drupal/config_translation/Tests/ConfigTranslationOverviewTest.php
    @@ -0,0 +1,97 @@
    +      'name' => 'Configuration Translation',
    +      'description' => 'Translate settings and entities to various languages',
    +      'group' => 'Configuration Translation',
    

    Name should have "overview at the end" IMHO.

    Also should description have a dot?

  2. +++ b/lib/Drupal/config_translation/Tests/ConfigTranslationOverviewTest.php
    @@ -0,0 +1,97 @@
    +    $this->assertText(format_string('Translations for @label @type', array('@label' => $test_entity->label(), '@type' => Unicode::strtolower($entity_info['label']))));
    

    assert()s should still use t() for the text, like the line below. So construct the string the same way with t() as in the code here.

  3. +++ b/tests/config_translation_test/config_translation_test.info.yml
    @@ -0,0 +1,8 @@
    +name: 'Configuration Translation test module'
    
    +++ b/tests/config_translation_test/config_translation_test.module
    @@ -0,0 +1,17 @@
    + * Configuration Translation test module.
    

    Test Module

webflo’s picture

Gábor Hojtsy’s picture

Status: Needs review » Fixed

Yay, committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.