Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
One test is failed. And got warnings of deprecation code and coding standards
........F.. 11 / 11 (100%)
Time: 2.1 minutes, Memory: 6.00 MB
There was 1 failure:
1) Drupal\Tests\ajax_example\FunctionalJavascript\EntityAutocompleteTest::testSubmitDriven
Failed asserting that actual size 0 matches expected size 2.
examples/ajax_example/tests/src/FunctionalJavascript/EntityAutocompleteTest.php:62
Remaining deprecation notices (11)
11x: Drupal\Tests\BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.
1x in AjaxExampleMenuTest::testAjaxExampleLinks from Drupal\Tests\ajax_example\Functional
1x in DependentDropdownTest::testDependentDropdown from Drupal\Tests\ajax_example\Functional
1x in DynamicFormSectionsTest::testDynamicFormSections from Drupal\Tests\ajax_example\Functional
1x in AjaxWizardTest::testWizardSteps from Drupal\Tests\ajax_example\FunctionalJavascript
1x in AjaxWizardTest::testWizardPreviousStepsValues from Drupal\Tests\ajax_example\FunctionalJavascript
1x in AutotextfieldsTest::testAutotextfields from Drupal\Tests\ajax_example\FunctionalJavascript
1x in DependentDropdownTest::testDependentDropdown from Drupal\Tests\ajax_example\FunctionalJavascript
1x in DynamicFormSectionsTest::testDynamicFormSections from Drupal\Tests\ajax_example\FunctionalJavascript
1x in EntityAutocompleteTest::testSubmitDriven from Drupal\Tests\ajax_example\FunctionalJavascript
1x in SimplestTest::testAutotextfields from Drupal\Tests\ajax_example\FunctionalJavascript
1x in SubmitDrivenTest::testSubmitDriven from Drupal\Tests\ajax_example\FunctionalJavascript
FILE: examples/ajax_example/src/Form/Wizard.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
85 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: examples/ajax_example/src/Form/Autotextfields.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
70 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#3 | ajax-example-3103521-3.patch | 10.72 KB | jungle |
Comments
Comment #2
jungleUpdate summary
Comment #3
jungleComment #4
jungleComment #6
valthebaldCommitted to 8.x-1.x, thank you!