Search for test

  1. Search 7.x for test
  2. Search 9.5.x for test
  3. Search 8.9.x for test
  4. Search 10.3.x for test
  5. Search 11.x 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
TwigThemeTestController::registryLoaderRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing the Twig registry loader.
TwigThemeTestController::renderable function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Controller for testing a renderable inside a template.
TwigThemeTestController::transBlockRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing translation blocks in a Twig template.
TwigThemeTestController::urlGeneratorRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing url_generator functions in a Twig template.
TwigThemeTestController::urlToStringRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders a URL to a string.
TwigThemeTestHooks class core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Hook implementations for twig_theme_test.
TwigThemeTestHooks.php file core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php
TwigThemeTestHooks::preprocessStatusMessages function core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Implements hook_preprocess_HOOK().
TwigThemeTestHooks::theme function core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Implements hook_theme().
TwigThemeTestUtils class core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestUtils.php Helper functions used by both test modules and test classes.
TwigThemeTestUtils.php file core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestUtils.php
TwigThemeTestUtils::phpValues function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestUtils.php Helper function to test PHP variables in the Twig engine.
TwigTransTest class core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests Twig "trans" tags.
TwigTransTest.php file core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::$adminUser property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php An administrative user for testing.
TwigTransTest::$defaultTheme property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::$languages property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Custom languages.
TwigTransTest::$modules property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::assertTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Asserts Twig trans tags.
TwigTransTest::installLanguages function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Helper function: install languages.
TwigTransTest::poFileContents function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Generate a custom .po file for a specific test language.
TwigTransTest::setUp function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::testEmptyTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests empty Twig "trans" tags.
TwigTransTest::testTransRenderArray function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Testing trans with render array value.
TwigTransTest::testTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests Twig "trans" tags.
twig_extension_test.filter.html.twig file core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.filter.html.twig <div class="test-filter">
{{ message|test_filter}}
</div>
<div>
{{ safe_join_items|safe_join('<br/>') }}
</div>
twig_extension_test.function.html.twig file core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.function.html.twig <div class="test-function">
{{ custom_function(1) }}
</div>

<div class="test-function">
{{ custom_function(0) }}
</div>
twig_extension_test.info.yml file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.info.yml core/modules/system/tests/modules/twig_extension_test/twig_extension_test.info.yml
twig_extension_test.routing.yml file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.routing.yml core/modules/system/tests/modules/twig_extension_test/twig_extension_test.routing.yml
twig_extension_test.services.yml file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.services.yml core/modules/system/tests/modules/twig_extension_test/twig_extension_test.services.yml
twig_extension_test.twig.test_extension service core/modules/system/tests/modules/twig_extension_test/twig_extension_test.services.yml Drupal\twig_extension_test\TwigExtension\TestExtension
twig_fibers_test.info.yml file core/modules/system/tests/modules/twig_fibers_test/twig_fibers_test.info.yml core/modules/system/tests/modules/twig_fibers_test/twig_fibers_test.info.yml
twig_fibers_test.services.yml file core/modules/system/tests/modules/twig_fibers_test/twig_fibers_test.services.yml core/modules/system/tests/modules/twig_fibers_test/twig_fibers_test.services.yml
twig_fibers_test.twig_extension service core/modules/system/tests/modules/twig_fibers_test/twig_fibers_test.services.yml Drupal\twig_fibers_test\TwigExtension\FibersTestExtension
twig_loader_test.info.yml file core/modules/system/tests/modules/twig_loader_test/twig_loader_test.info.yml core/modules/system/tests/modules/twig_loader_test/twig_loader_test.info.yml
twig_loader_test.services.yml file core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml
twig_loader_test.twig.test_loader service core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml Drupal\twig_loader_test\Loader\TestLoader
twig_namespace_test.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_namespace_test.html.twig {% extends "@twig_namespace_a/test.html.twig" %}

{% block content %}
{% include "@twig_namespace_b/test.html.twig" %}
{% endblock %}
twig_theme_test.attach_library.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.attach_library.html.twig {{ attach_library('core/ckeditor5') }}
twig_theme_test.dump.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.dump.html.twig {% set foo = '💩' %}
{% set bar = '🐣' %}
{% set baz = '☄️' %}
{{ dump(foo) }}
{{ dump() }}
{{ dump(foo, baz) }}
twig_theme_test.embed_tag.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.embed_tag.html.twig {% embed "@twig_theme_test/twig-theme-test-embed-tag-embedded.html.twig" %}

{% endembed %}
twig_theme_test.file_url.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.file_url.html.twig <div>file_url: {{ file_url('core/modules/system/tests/modules/twig_theme_test/js/twig_theme_test.js') }}</div>
<div>file_url: {{ file_url(undefined_variable) }}</div>
twig_theme_test.filter.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.filter.html.twig <div><strong>No author:</strong> {{ quote|without('author') }}.</div>
<div><strong>Complete quote after without:</strong> {{ quote }}.</div>
<div><strong>Only author:</strong>…
twig_theme_test.info.yml file core/modules/system/tests/modules/twig_theme_test/twig_theme_test.info.yml core/modules/system/tests/modules/twig_theme_test/twig_theme_test.info.yml
twig_theme_test.link_generator.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.link_generator.html.twig <div>link via the link generator: {{ link('register', test_url) }}</div>
<div>link via the link generator: {{ link('register', test_url, {'foo': 'bar'}) }}</div>
<div>link via the…
twig_theme_test.php_variables.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.php_variables.html.twig {# Output for Twig Theme PHP variables test. #}
<ul>
{% for key, php_value in php_values %}
<li>{{ key }}: {{ php_value.value }}</li>
{% endfor %}
</ul>
twig_theme_test.placeholder_outside_trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig Placeholder outside trans: {{ var | placeholder }}

{% trans %}
Placeholder inside trans: {{ var | placeholder }}
{% endtrans %}
twig_theme_test.renderable.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.renderable.html.twig <div>{{ renderable }}</div>
twig_theme_test.routing.yml file core/modules/system/tests/modules/twig_theme_test/twig_theme_test.routing.yml core/modules/system/tests/modules/twig_theme_test/twig_theme_test.routing.yml
twig_theme_test.trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.trans.html.twig {# Test trans tag with string argument. #}
<div>
{% trans 'Hello sun.' %}
</div>

{# Test trans tag with string argument and context #}
<div>
{% trans 'Hello sun.' with {'context':…

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