Search for setUp

  1. Search 7.x for setUp
  2. Search 9.5.x for setUp
  3. Search 8.9.x for setUp
  4. Search 10.3.x for setUp
  5. Other projects
Title Object type File name Summary
FunctionalTestSetupTrait::$rootUser property core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php The "#1" admin user.
FunctionalTestSetupTrait::$usesSuperUserAccessPolicy property core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Set to TRUE to make user 1 a super user.
FunctionalTestSetupTrait::doInstall function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Execute the non-interactive installer.
FunctionalTestSetupTrait::getDatabaseTypes function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Returns all supported database driver installer objects.
FunctionalTestSetupTrait::initConfig function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Initialize various configurations post-installation.
FunctionalTestSetupTrait::initKernel function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Initializes the kernel after installation.
FunctionalTestSetupTrait::initSettings function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Initialize settings created during install.
FunctionalTestSetupTrait::initUserSession function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Initializes user 1 for the site to be installed.
FunctionalTestSetupTrait::installDefaultThemeFromClassProperty function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Installs the default theme defined by `static::$defaultTheme` when needed.
FunctionalTestSetupTrait::installModulesFromClassProperty function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Install modules defined by `static::$modules`.
FunctionalTestSetupTrait::installParameters function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Returns the parameters that will be used when the test installs Drupal.
FunctionalTestSetupTrait::prepareEnvironment function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Prepares the current environment for running the test.
FunctionalTestSetupTrait::prepareRequestForGenerator function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Creates a mock request and sets it on the generator.
FunctionalTestSetupTrait::prepareSettings function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Prepares site settings and services before installation.
FunctionalTestSetupTrait::rebuildAll function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Resets and rebuilds the environment after setup.
FunctionalTestSetupTrait::rebuildContainer function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Rebuilds \Drupal::getContainer().
FunctionalTestSetupTrait::resetAll function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Resets all data structures after having enabled new modules.
FunctionalTestSetupTrait::setContainerParameter function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Changes parameters in the services.yml file.
FunctionalTestSetupTrait::setupBaseUrl function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Sets up the base URL based upon the environment variable.
FunctionalTestSetupTrait::writeSettings function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Rewrites the settings.php file of the test site.
FunctionsTest::setUp function core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php
GenerateThemeTest::setUp function core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
GenerateThemeTest::setUp function core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php
GenericCacheBackendUnitTestBase::setUp function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
GenericCacheBackendUnitTestBase::setUpCacheBackend function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Allows specific implementation to change the environment before a test run.
GenericTest::setUp function core/modules/node/tests/src/Functional/GenericTest.php
GitExcluderTest::setUp function core/modules/package_manager/tests/src/Kernel/PathExcluder/GitExcluderTest.php
GlossaryViewTest::setUp function core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php
GroupedExposedFilterTest::setUp function core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/GroupedExposedFilterTest.php
GroupIncludesTestTrait::setupGroupIncludes function core/tests/Drupal/Tests/Core/GroupIncludesTestTrait.php
HandlerAliasTest::setUp function core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php
HandlerBaseTest::setUp function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
HandlerFilterCurrentUserTest::setUp function core/modules/user/tests/src/Kernel/Views/HandlerFilterCurrentUserTest.php
HandlerFilterUserNameTest::setUp function core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php Sets up the test.
HandlerTest::setUp function core/modules/views_ui/tests/src/Functional/HandlerTest.php Sets up the test.
HandlerTest::setUp function core/modules/views/tests/src/Functional/Handler/HandlerTest.php Sets up the test.
HandlerTestTrait::setupDisplay function core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php Sets up a mocked display object.
HandlerTestTrait::setupExecutableAndView function core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php Sets up a view executable and a view entity.
HandlerTestTrait::setupViewsData function core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php Sets up a mocked views data object.
HelpBlockTest::setUp function core/modules/help/tests/src/Functional/HelpBlockTest.php
HelpPageOrderTest::setUp function core/modules/help/tests/src/Functional/HelpPageOrderTest.php
HelpTest::setUp function core/modules/help/tests/src/Functional/HelpTest.php
HelpTopicSearchTest::setUp function core/modules/help/tests/src/Functional/HelpTopicSearchTest.php
HelpTopicTest::setUp function core/modules/help/tests/src/Functional/HelpTopicTest.php
HelpTopicTranslatedTestBase::setUp function core/modules/help/tests/src/Functional/HelpTopicTranslatedTestBase.php
HelpTopicTranslationTest::setUp function core/modules/help/tests/src/Functional/HelpTopicTranslationTest.php
HelpTopicTwigLoaderTest::setUp function core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php
HelpTopicTwigLoaderTest::setUpVfs function core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php Sets up the virtual file system.
HelpTopicTwigTest::setUp function core/modules/help/tests/src/Unit/HelpTopicTwigTest.php
HighWaterTest::setUp function core/modules/migrate/tests/src/Kernel/HighWaterTest.php

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