Search for test

  1. Search 7.x for test
  2. Search 9.5.x for test
  3. Search 10.3.x for test
  4. Search 11.x for test
  5. Search main for test
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Test class core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php Provides test media source.
Test class core/modules/system/tests/modules/test_page_test/src/Controller/Test.php Defines a test controller for page titles.

All search results

Title Object type File name Summary
TextFormatElementFormTest::testTextFormatElement function core/modules/filter/tests/src/Kernel/TextFormatElementFormTest.php Tests that values are returned.
TextFormatElementFormTest::validateForm function core/modules/filter/tests/src/Kernel/TextFormatElementFormTest.php Form validation handler.
TextFormatterTest class core/modules/text/tests/src/Kernel/TextFormatterTest.php Tests the text formatters functionality.
TextFormatterTest.php file core/modules/text/tests/src/Kernel/TextFormatterTest.php
TextFormatterTest::$bundle property core/modules/text/tests/src/Kernel/TextFormatterTest.php The bundle used in this test.
TextFormatterTest::$entityType property core/modules/text/tests/src/Kernel/TextFormatterTest.php The entity type used in this test.
TextFormatterTest::$modules property core/modules/text/tests/src/Kernel/TextFormatterTest.php Modules to enable.
TextFormatterTest::setUp function core/modules/text/tests/src/Kernel/TextFormatterTest.php
TextFormatterTest::testFormatters function core/modules/text/tests/src/Kernel/TextFormatterTest.php Tests all text field formatters.
TextRequiredSummaryUpdateTest class core/modules/text/tests/src/Functional/TextRequiredSummaryUpdateTest.php Tests updates for adding required summary flags to widgets and fields.
TextRequiredSummaryUpdateTest.php file core/modules/text/tests/src/Functional/TextRequiredSummaryUpdateTest.php
TextRequiredSummaryUpdateTest::$defaultTheme property core/modules/text/tests/src/Functional/TextRequiredSummaryUpdateTest.php The theme to install as the default for testing.
TextRequiredSummaryUpdateTest::setDatabaseDumpFiles function core/modules/text/tests/src/Functional/TextRequiredSummaryUpdateTest.php Set database dump files to be used.
TextRequiredSummaryUpdateTest::testFieldAndWidgetUpdate function core/modules/text/tests/src/Functional/TextRequiredSummaryUpdateTest.php Tests that widgets and fields are updated for required summary flag.
TextSummaryTest class core/modules/text/tests/src/Kernel/TextSummaryTest.php Tests text_summary() with different strings and lengths.
TextSummaryTest.php file core/modules/text/tests/src/Kernel/TextSummaryTest.php
TextSummaryTest::$modules property core/modules/text/tests/src/Kernel/TextSummaryTest.php Modules to enable.
TextSummaryTest::assertTextSummary function core/modules/text/tests/src/Kernel/TextSummaryTest.php Calls text_summary() and asserts that the expected teaser is returned.
TextSummaryTest::setUp function core/modules/text/tests/src/Kernel/TextSummaryTest.php
TextSummaryTest::testFirstSentenceQuestion function core/modules/text/tests/src/Kernel/TextSummaryTest.php Tests an edge case where the first sentence is a question and
subsequent sentences are not. This edge case is documented at
https://www.drupal.org/node/180425.
TextSummaryTest::testInvalidFilterFormat function core/modules/text/tests/src/Kernel/TextSummaryTest.php Test text_summary() returns an empty string without any error when called
with an invalid format.
TextSummaryTest::testLength function core/modules/text/tests/src/Kernel/TextSummaryTest.php Test various summary length edge cases.
TextSummaryTest::testLongSentence function core/modules/text/tests/src/Kernel/TextSummaryTest.php Test summary with long example.
TextSummaryTest::testRequiredSummary function core/modules/text/tests/src/Kernel/TextSummaryTest.php Test required summary.
TextWithSummaryItemTest class core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Tests using entity fields of the text summary field type.
TextWithSummaryItemTest.php file core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
TextWithSummaryItemTest::$field property core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Field entity.
TextWithSummaryItemTest::$fieldStorage property core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Field storage entity.
TextWithSummaryItemTest::$modules property core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Modules to enable.
TextWithSummaryItemTest::createField function core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Creates a text_with_summary field storage and field.
TextWithSummaryItemTest::setUp function core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Set the default field storage backend for fields created during tests.
TextWithSummaryItemTest::testCrudAndUpdate function core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php Tests processed properties.
theme-test--suggestion.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test--suggestion.html.twig {# Output for Theme API test #}
Theme hook implementor=theme-test--suggestion.html.twig. Foo={{ foo }}
theme-test-foo.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-foo.html.twig {# Output for Theme API test #}
{{ foo -}}
theme-test-function-template-override.html.twig file core/modules/system/tests/themes/test_theme/theme-test-function-template-override.html.twig {# Output for Theme API test #}
Success: Template overrides theme function.
theme-test-general-suggestions--module-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-general-suggestions--module-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by a module via hook_theme_suggestions_alter().
theme-test-general-suggestions--theme-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-general-suggestions--theme-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by the test_theme theme via hook_theme_suggestions_alter().
theme-test-general-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-general-suggestions.html.twig {# Output for Theme API test #}
Original template for testing hook_theme_suggestions_alter().
theme-test-preprocess-suggestions--kitten--bearcat.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-preprocess-suggestions--kitten--bearcat.html.twig <div class="suggestion">{{ foo }}</div>
{% if bar %}
<div class="suggestion">{{ bar }}</div>
{% endif %}
theme-test-preprocess-suggestions--suggestion.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-preprocess-suggestions--suggestion.html.twig <div class="suggestion">{{ foo }}</div>
theme-test-preprocess-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-suggestions.html.twig <div class="suggestion">{{ foo }}</div>
{% if bar %}
<div class="suggestion">{{ bar }}</div>
{% endif %}
theme-test-registered-by-module.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-registered-by-module.html.twig {# Output for Theme API test #}
Template provided by theme is registered by module.
theme-test-render-element-children.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-render-element-children.html.twig {# Output for Theme API test #}
{{ element -}}
theme-test-render-element.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-render-element.html.twig <div{{ attributes }}></div>
theme-test-specific-suggestions--variant--foo.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-specific-suggestions--variant--foo.html.twig {# Output for Theme API test #}
Template overridden based on suggestion alter hook determined by the base hook.

<p>Theme hook suggestions:
{{ theme_hook_suggestions|safe_join("<br />") }}</p>
theme-test-specific-suggestions--variant.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-specific-suggestions--variant.html.twig {# Output for Theme API test #}
Template matching the specific theme call.

<p>Theme hook suggestions:
{{ theme_hook_suggestions|safe_join("<br />") }}</p>
theme-test-specific-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-specific-suggestions.html.twig {# Output for Theme API test #}
Template for testing specific theme calls.
theme-test-suggestion-provided--foo.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-suggestion-provided--foo.html.twig {# Output for Theme API test #}
Template overridden based on suggestion provided by the module declaring the theme hook.
theme-test-suggestion-provided.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-suggestion-provided.html.twig {# Output for Theme API test #}
Template for testing suggestions provided by the module declaring the theme hook.
theme-test-suggestions--module-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-suggestions--module-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by a module via hook_theme_suggestions_HOOK_alter().

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