Drupal 8  8.0.2
WebTestBase Class Reference

Inherits TestBase.

Inherited by ActionUninstallTest, BulkFormTest, ConfigurationTest, AggregatorTestBase, IpAddressBlockingTest, BasicAuthTest, BlockAdminThemeTest, BlockCacheTest, BlockFormInBlockTest, BlockHiddenRegionTest, BlockHookOperationTest, BlockHtmlTest, BlockInstallTest, BlockInvalidRegionTest, BlockLanguageCacheTest, BlockLanguageTest, BlockRenderOrderTest, BlockTemplateSuggestionsTest, BlockTestBase, BlockUiTest, BlockXssTest, NewDefaultThemeBlocksTest, NonDefaultBlockAdminTest, BlockContentTestBase, BookTest, CKEditorAdminTest, CKEditorLoadingTest, CKEditorToolbarButtonTest, ColorConfigSchemaTest, ColorSafePreviewTest, ColorTest, CommentBookTest, CommentLanguageTest, CommentNonNodeTest, CommentTestBase, CommentUninstallTest, CacheabilityMetadataConfigOverrideIntegrationTest, ConfigDependencyWebTest, ConfigEntityFormOverrideTest, ConfigEntityListMultilingualTest, ConfigEntityListTest, ConfigEntityStatusUITest, ConfigEntityTest, ConfigExportImportUITest, ConfigExportUITest, ConfigFormOverrideTest, ConfigImportInstallProfileTest, ConfigImportUITest, ConfigImportUploadTest, ConfigInstallProfileOverrideTest, ConfigInstallWebTest, ConfigLanguageOverrideWebTest, ConfigOtherModuleTest, ConfigSingleImportExportTest, LanguageNegotiationFormOverrideTest, SchemaConfigListenerWebTest, ConfigTranslationDateFormatUiTest, ConfigTranslationFormTest, ConfigTranslationListUiTest, ConfigTranslationOverviewTest, ConfigTranslationUiTest, ConfigTranslationUiThemeTest, ContactAuthenticatedUserTest, ContactLanguageTest, ContactPersonalTest, ContactSitewideTest, ContentTranslationContextualLinksTest, ContentTranslationEnableTest, ContentTranslationEntityBundleUITest, ContentTranslationSettingsTest, ContentTranslationStandardFieldsTest, ContentTranslationTestBase, ContentTranslationUISkipTest, ContextualDynamicContextTest, DateTimeFieldTest, ConnectionFailureTest, DbLogTest, SystemListingCompatibleTest, DynamicPageCacheIntegrationTest, EditorAdminTest, EditorLoadingTest, EditorSecurityTest, QuickEditIntegrationLoadingTest, BooleanFieldTest, BooleanFormatterSettingsTest, EmailFieldTest, EntityReferenceAdminTest, EntityReferenceAutoCreateTest, EntityReferenceFieldDefaultValueTest, EntityReferenceFieldTranslatedReferenceViewTest, EntityReferenceFileUploadTest, EntityReferenceIntegrationTest, EntityReferenceXSSTest, SelectionTest, FieldDefaultValueCallbackTest, FieldHelpTest, FieldTestBase, NumberFieldTest, reEnableModuleFieldTest, StringFieldTest, EntityDisplayModeTest, FieldUIDeleteTest, FieldUIIndentationTest, FieldUIRouteTest, ManageDisplayTest, ManageFieldsTest, FileFieldTestBase, FileManagedTestBase, FilterAdminTest, FilterDefaultFormatTest, FilterFormatAccessTest, FilterFormTest, FilterHooksTest, FilterHtmlImageSecureTest, FilterNoFormatTest, FilterSecurityTest, ForumBlockTest, ForumIndexTest, ForumNodeAccessTest, ForumTest, ForumUninstallTest, FileDenormalizeTest, HelpTest, NoHelpTest, HistoryTest, FileMoveTest, ImageDimensionsTest, ImageFieldTestBase, ImageStylesPathAndUrlTest, ImageThemeFunctionTest, AdminPathEntityConverterLanguageTest, EntityTypeWithoutLanguageFormTest, LanguageBlockSettingsVisibilityTest, LanguageBrowserDetectionTest, LanguageConfigOverrideImportTest, LanguageConfigSchemaTest, LanguageConfigurationElementTest, LanguageConfigurationTest, LanguageCustomLanguageConfigurationTest, LanguageListModuleInstallTest, LanguageListTest, LanguageNegotiationContentEntityTest, LanguageNegotiationInfoTest, LanguagePathMonolingualTest, LanguageSelectorTranslatableTest, LanguageSwitchingTest, LanguageUILanguageNegotiationTest, LanguageUrlRewritingTest, LinkFieldTest, LinkFieldUITest, LocaleConfigTranslationImportTest, LocaleConfigTranslationTest, LocaleContentTest, LocaleExportTest, LocaleFileSystemFormTest, LocaleImportFunctionalTest, LocaleJavascriptTranslationTest, LocaleLibraryAlterTest, LocaleLocaleLookupTest, LocalePathTest, LocalePluralFormatTest, LocaleStringTest, LocaleTranslatedSchemaDefinitionTest, LocaleTranslationUiTest, LocaleUpdateBase, LocaleUpdateDevelopmentReleaseTest, LinksTest, MenuLinkContentDeleteFormTest, MenuLinkContentFormTest, MenuLinkReorderTest, MenuNodeTest, MenuUninstallTest, MenuWebTestBase, MinimalTest, NodeAccessPagerTest, NodeFieldMultilingualTest, NodeFormSaveChangedTimeTest, NodeHelpTest, NodeTestBase, NodeTypeTranslationTest, PageCacheTagsIntegrationTest, PageCacheTest, PathTestBase, QuickEditAutocompleteTermTest, QuickEditLoadingTest, GetNamespacesTest, GetRdfNamespacesTest, StandardProfileTest, UserAttributesTest, ResponsiveImageAdminUITest, ResponsiveImageFieldUiTest, RESTTestBase, SearchTestBase, ShortcutTestBase, InstallerTestBase, BrokenSetUpTest, BrowserTest, FolderTest, InstallationProfileModuleTestsTest, MailCaptureTest, MissingCheckedRequirementsTest, OtherInstallationProfileTestsTest, SimpleTestBrowserTest, SimpleTestInstallBatchTest, SimpleTestTest, UserHelpersTest, StandardTest, StatisticsAdminTest, StatisticsAttachedTest, StatisticsLoggingTest, StatisticsTestBase, SyslogTest, AjaxTestBase, PageTest, ProcessingTest, DrupalSetMessageTest, CacheTestBase, PageCacheTagsTestBase, AddFeedTest, AlterTest, EarlyRenderingControllerTest, FormatDateTest, NoJavaScriptAnonymousTest, RenderWebTest, SimpleTestErrorCollectorTest, UrlTest, ConditionFormTest, DatabaseWebTestBase, DrupalDateTimeTest, ContainerRebuildWebTest, ContentNegotiationTest, ConfigEntityImportTest, EntityFormTest, EntityListBuilderTest, EntityOperationsTest, EntityReferenceSelectionAccessTest, EntityRevisionsTest, EntityTranslationFormTest, EntityViewControllerTest, UpdateApiEntityDefinitionUpdateTest, ConfigTest, FileSaveHtaccessLoggingTest, FileTransferTest, AlterTest, ArbitraryRebuildTest, CheckboxTest, ConfirmFormTest, ElementsAccessTest, ElementsLabelsTest, ElementsTableSelectTest, ElementsVerticalTabsTest, ElementTest, EmailTest, FormStoragePageCacheTest, FormTest, LanguageSelectElementTest, ModulesListFormWebTest, ProgrammaticTest, RebuildTest, RedirectTest, ResponseTest, StateValuesCleanAdvancedTest, StateValuesCleanTest, StorageTest, SystemConfigFormTest, TriggeringElementTest, UrlTest, ValidationTest, ToolkitSetupFormTest, ToolkitTestBase, SiteNameTest, LockFunctionalTest, HtmlToTextTest, MailTest, LocalActionTest, LocalTasksTest, MenuAccessTest, MenuLinkSecurityTest, MenuRouterTest, MenuTestBase, ClassLoaderTest, InstallTest, ModuleTestBase, UninstallTest, DefaultMetatagsTest, PagerTest, UpcastingTest, UrlAlterFunctionalTest, AjaxPageStateTest, DisplayVariantTest, HtmlResponseAttachmentsTest, UrlBubbleableMetadataBubblingTest, DestinationTest, RouterPermissionTest, RouterTest, ServiceProviderWebTest, SessionAuthenticationTest, SessionHttpsTest, SessionTest, StackSessionHandlerIntegrationTest, AccessDeniedTest, AdminMetaTagTest, AdminTest, CronQueueTest, CronRunTest, DateFormatsLockedTest, DateFormatsMachineNameTest, DateTimeTest, DefaultMobileMetaTagsTest, ErrorHandlerTest, FloodTest, FrontPageTest, HtaccessTest, IndexPhpTest, MainContentFallbackTest, PageNotFoundTest, PageTitleTest, RetrieveFileTest, ShutdownFunctionsTest, SiteMaintenanceTest, StatusTest, SystemAuthorizeTest, SystemConfigFormTestBase, ThemeTest, TokenReplaceWebTest, TokenScanTest, TrustedHostsTest, UncaughtExceptionTest, EngineNyanCatTest, EngineTwigTest, EntityFilteringThemeTest, FastTest, FunctionsTest, HtmlAttributesTest, ThemeEarlyInitializationTest, ThemeInfoTest, ThemeSuggestionsAlterTest, ThemeTest, ThemeTokenTest, TwigDebugMarkupTest, TwigExtensionTest, TwigFilterTest, TwigLoaderTest, TwigNamespaceTest, TwigRawTest, TwigRegistryLoaderTest, TwigSettingsTest, TwigTransTest, DependencyHookInvocationTest, DependencyMissingTest, DependencyOrderingTest, InvalidUpdateHookTest, UpdatePathTestBase, UpdateSchemaTest, UpdateScriptTest, UpdatesWith7xTest, TaxonomyTestBase, TelephoneFieldTest, ToolbarAdminMenuTest, ToolbarCacheContextsTest, ToolbarHookToolbarTest, ToolbarMenuTranslationTest, TourTestBase, TrackerNodeAccessTest, TrackerTest, UpdateTestBase, UserAccountLinksTest, UserAdminLanguageTest, UserAdminListingTest, UserAdminTest, UserBlocksTest, UserCancelTest, UserCreateFailMailTest, UserCreateTest, UserDeleteTest, UserEditedOwnAccountTest, UserEditTest, UserEntityCallbacksTest, UserLanguageCreationTest, UserLanguageTest, UserLoginTest, UserPermissionsTest, UserPictureTest, UserRegistrationTest, UserRoleAdminTest, UserRolesAssignmentTest, UserSaveTest, UserSearchTest, UserTimeZoneTest, UserTokenReplaceTest, ViewNonTranslatableEntityTest, ViewsFormTest, ViewTestBase, NewViewConfigSchemaTest, ReportTest, and ViewsListTest.

Public Member Functions

 __construct ($test_id=NULL)
 
 drupalGetNodeByTitle ($title, $reset=FALSE)
 
- Public Member Functions inherited from TestBase
 __construct ($test_id=NULL)
 
 run (array $methods=array())
 
 errorHandler ($severity, $message, $file=NULL, $line=NULL)
 
 configImporter ()
 
 copyConfig (StorageInterface $source_storage, StorageInterface $target_storage)
 
 getDatabasePrefix ()
 
 getTempFilesDirectory ()
 

Data Fields

createRole as drupalCreateRole
 
createAdminRole as drupalCreateAdminRole
 
- Data Fields inherited from TestBase
 $results
 
 $verbose
 
 $dieOnFail = FALSE
 

Protected Member Functions

 drupalCreateNode (array $settings=array())
 
 drupalCreateContentType (array $values=array())
 
 drupalBuildEntityView (EntityInterface $entity, $view_mode= 'full', $langcode=NULL, $reset=FALSE)
 
 drupalPlaceBlock ($plugin_id, array $settings=array())
 
 assertBlockAppears (Block $block)
 
 assertNoBlockAppears (Block $block)
 
 findBlockInstance (Block $block)
 
 drupalGetTestFiles ($type, $size=NULL)
 
 drupalCompareFiles ($file1, $file2)
 
 drupalLogin (AccountInterface $account)
 
 drupalUserIsLoggedIn ($account)
 
 drupalLogout ()
 
 setUp ()
 
 doInstall ()
 
 prepareSettings ()
 
 initSettings ()
 
 initConfig (ContainerInterface $container)
 
 rebuildAll ()
 
 installParameters ()
 
 setBatch ()
 
 restoreBatch ()
 
 initUserSession ()
 
 initKernel (Request $request)
 
 addCustomTranslations ($langcode, array $values)
 
 writeCustomTranslations ()
 
 rebuildContainer ()
 
 resetAll ()
 
 refreshVariables ()
 
 tearDown ()
 
 curlInitialize ()
 
 curlExec ($curl_options, $redirect=FALSE)
 
 curlHeaderCallback ($curlHandler, $header)
 
 curlClose ()
 
 isInChildSite ()
 
 drupalGet ($path, array $options=array(), array $headers=array())
 
 drupalGetJSON ($path, array $options=array(), array $headers=array())
 
 drupalGetWithFormat ($path, $format, array $options=[], array $headers=[])
 
 drupalGetAjax ($path, array $options=array(), array $headers=array())
 
 drupalGetXHR ($path, array $options=array(), array $headers=array())
 
 drupalPostForm ($path, $edit, $submit, array $options=array(), array $headers=array(), $form_html_id=NULL, $extra_post=NULL)
 
 drupalPostAjaxForm ($path, $edit, $triggering_element, $ajax_path=NULL, array $options=array(), array $headers=array(), $form_html_id=NULL, $ajax_settings=NULL)
 
 drupalProcessAjaxResponse ($content, array $ajax_response, array $ajax_settings, array $drupal_settings)
 
 drupalPost ($path, $accept, array $post, $options=array())
 
 drupalPostWithFormat ($path, $format, array $post, $options=[])
 
 getAjaxPageStatePostData ()
 
 serializePostValues ($post=array())
 
 translatePostValues (array $values)
 
 cronRun ()
 
 checkForMetaRefresh ()
 
 drupalHead ($path, array $options=array(), array $headers=array())
 
 handleForm (&$post, &$edit, &$upload, $submit, $form)
 
 clickLink ($label, $index=0)
 
 clickLinkPartialName ($label, $index=0)
 
 clickLinkHelper ($label, $index, $pattern)
 
 getAbsoluteUrl ($path)
 
 drupalGetHeaders ($all_requests=FALSE)
 
 drupalGetHeader ($name, $all_requests=FALSE)
 
 assertHeader ($header, $value, $message= '', $group= 'Browser')
 
 drupalGetMails ($filter=array())
 
 assertUrl ($path, array $options=array(), $message= '', $group= 'Other')
 
 assertResponse ($code, $message= '', $group= 'Browser')
 
 assertNoResponse ($code, $message= '', $group= 'Browser')
 
 assertMail ($name, $value= '', $message= '', $group= 'Email')
 
 assertMailString ($field_name, $string, $email_depth, $message= '', $group= 'Other')
 
 assertMailPattern ($field_name, $regex, $message= '', $group= 'Other')
 
 verboseEmail ($count=1)
 
 prepareRequestForGenerator ($clean_urls=TRUE, $override_server_vars=array())
 
 buildUrl ($path, array $options=array())
 
 assertCacheContext ($expected_cache_context)
 
 assertNoCacheContext ($not_expected_cache_context)
 
 assertCacheTag ($expected_cache_tag)
 
 assertNoCacheTag ($cache_tag)
 
 setHttpResponseDebugCacheabilityHeaders ($value=TRUE)
 
- Protected Member Functions inherited from TestBase
 setUp ()
 
 checkRequirements ()
 
 storeAssertion (array $assertion)
 
 assert ($status, $message= '', $group= 'Other', array $caller=NULL)
 
 getAssertionCall ()
 
 assertTrue ($value, $message= '', $group= 'Other')
 
 assertFalse ($value, $message= '', $group= 'Other')
 
 assertNull ($value, $message= '', $group= 'Other')
 
 assertNotNull ($value, $message= '', $group= 'Other')
 
 assertEqual ($first, $second, $message= '', $group= 'Other')
 
 assertNotEqual ($first, $second, $message= '', $group= 'Other')
 
 assertIdentical ($first, $second, $message= '', $group= 'Other')
 
 assertNotIdentical ($first, $second, $message= '', $group= 'Other')
 
 assertIdenticalObject ($object1, $object2, $message= '', $group= 'Other')
 
 assertNoErrorsLogged ()
 
 assertErrorLogged ($error_message)
 
 pass ($message=NULL, $group= 'Other')
 
 fail ($message=NULL, $group= 'Other')
 
 error ($message= '', $group= 'Other', array $caller=NULL)
 
 verbose ($message)
 
 beforePrepareEnvironment ()
 
 tearDown ()
 
 exceptionHandler ($exception)
 
 settingsSet ($name, $value)
 
 config ($name)
 
 getConfigSchemaExclusions ()
 

Protected Attributes

 $profile = 'testing'
 
 $url
 
 $curlHandle
 
 $assertAjaxHeader = TRUE
 
 $headers
 
 $cookies = array()
 
 $dumpHeaders = FALSE
 
 $loggedInUser = FALSE
 
 $rootUser
 
 $cookieFile = NULL
 
 $additionalCurlOptions = array()
 
 $originalBatch
 
 $originalUser = NULL
 
 $originalShutdownCallbacks = array()
 
 $sessionId = NULL
 
 $generatedTestFiles = FALSE
 
 $maximumRedirects = 5
 
 $redirectCount
 
 $maximumMetaRefreshCount = NULL
 
 $metaRefreshCount = 0
 
 $kernel
 
 $configDirectories = array()
 
 $curlCookies = array()
 
 $customTranslations
 
 $classLoader
 
- Protected Attributes inherited from TestBase
 $testId
 
 $siteDirectory = NULL
 
 $databasePrefix = NULL
 
 $timeLimit = 500
 
 $assertions = array()
 
 $skipClasses = array(__CLASS__ => TRUE)
 
 $verboseId = 0
 
 $verboseClassName
 
 $verboseDirectory
 
 $verboseDirectoryUrl
 
 $originalConf
 
 $originalConfig
 
 $originalConfigDirectories
 
 $originalContainer
 
 $originalFileDirectory = NULL
 
 $originalLanguage
 
 $originalPrefix
 
 $originalProfile
 
 $originalSessionName
 
 $originalSettings
 
 $originalShutdownCallbacks
 
 $originalSite
 
 $originalUser
 
 $publicFilesDirectory
 
 $privateFilesDirectory
 
 $tempFilesDirectory
 
 $translationFilesDirectory
 
 $kernel
 
 $container
 
 $configImporter
 
 $strictConfigSchema = TRUE
 
 $httpAuthMethod = CURLAUTH_BASIC
 
 $httpAuthCredentials = NULL
 

Additional Inherited Members

- Static Public Member Functions inherited from TestBase
static insertAssert ($test_id, $test_class, $status, $message= '', $group= 'Other', array $caller=array())
 
static deleteAssert ($message_id)
 
static getDatabaseConnection ()
 
static generatePermutations ($parameters)
 
static filePreDeleteCallback ($path)
 
- Static Protected Attributes inherited from TestBase
static $configSchemaCheckerExclusions
 

Detailed Description

Test case for typical Drupal tests.

Constructor & Destructor Documentation

__construct (   $test_id = NULL)

Constructor for .

Member Function Documentation

addCustomTranslations (   $langcode,
array  $values 
)
protected

Install modules defined by static::$modules.

To install test modules outside of the testing environment, add

$settings['extension_discovery_scan_tests'] = TRUE;
@encode
to your settings.php.
@param \Symfony\Component\DependencyInjection\ContainerInterface $container
The container.
/
protected function installModulesFromClassProperty(ContainerInterface $container) {
$class = get_class($this);
$modules = [];
while ($class) {
if (property_exists($class, 'modules')) {
$modules = array_merge($modules, $class::$modules);
}
$class = get_parent_class($class);
}
if ($modules) {
$modules = array_unique($modules);
try {
$success = $container->get('module_installer')->install($modules, TRUE);
$this->assertTrue($success, SafeMarkup::format('Enabled modules: %modules', ['%modules' => implode(', ', $modules)]));
}
catch (MissingDependencyException $e) {
// The exception message has all the details.
$this->fail($e->getMessage());
}
$this->rebuildContainer();
}
}
protected function getDatabaseTypes() {
\Drupal::setContainer($this->originalContainer);
$database_types = drupal_get_database_types();
return $database_types;
}
protected function writeSettings(array $settings) {
include_once DRUPAL_ROOT . '/core/includes/install.inc';
$filename = $this->siteDirectory . '/settings.php';
// system_requirements() removes write permissions from settings.php
// whenever it is invoked.
// Not using File API; a potential error must trigger a PHP warning.
chmod($filename, 0666);
drupal_rewrite_settings($settings, $filename);
}
protected function setContainerParameter($name, $value) {
$filename = $this->siteDirectory . '/services.yml';
chmod($filename, 0666);
$services = Yaml::decode(file_get_contents($filename));
$services['parameters'][$name] = $value;
file_put_contents($filename, Yaml::encode($services));
// Ensure that the cache is deleted for the yaml file loader.
$file_cache = FileCacheFactory::get('container_yaml_loader');
$file_cache->delete($filename);
}

Pass an empty array to remove all existing custom translations for the given $langcode.

Referenced by PageTitleTest\testRoutingTitle().

Here is the caller graph for this function:

assertBlockAppears ( Block  $block)
protected

Checks to see whether a block appears on the page.

Parameters
\Drupal\block\Entity\Block$blockThe block entity to find on the page.

References TestBase\assertTrue(), WebTestBase\findBlockInstance(), and format_string().

Referenced by DisplayBlockTest\testDeleteBlockDisplay(), DisplayTest\testInvalidDisplayPlugins(), and ShortcutLinksTest\testShortcutBlockAccess().

Here is the call graph for this function:

Here is the caller graph for this function:

assertCacheContext (   $expected_cache_context)
protected

Asserts whether an expected cache context was present in the last response.

Parameters
string$expected_cache_contextThe expected cache context.

References TestBase\assertTrue(), and WebTestBase\drupalGetHeader().

Referenced by CacheabilityMetadataConfigOverrideIntegrationTest\testConfigOverride(), ExposedFormTest\testExposedBlock(), HistoryTest\testHistory(), DisplayPathTest\testMenuOptions(), NodeAccessAutoBubblingTest\testNodeAccessCacheabilitySafeguard(), NodeTypeTest\testNodeTypeCreation(), PageCacheTest\testPageCacheAnonymousRolePermissions(), PagerTest\testPagerQueryParametersAndCacheContext(), ContactPersonalTest\testPersonalContactAccess(), EngineTwigTest\testTwigUrlGenerator(), MenuTest\testUnpublishedNodeMenuItem(), UrlBubbleableMetadataBubblingTest\testUrlBubbleableMetadataBubbling(), ContentTranslationWorkflowsTest\testWorkflows(), and RenderWebTest\testWrapperFormatCacheContext().

Here is the call graph for this function:

Here is the caller graph for this function:

assertHeader (   $header,
  $value,
  $message = '',
  $group = 'Browser' 
)
protected

Check if a HTTP response header exists and has the expected value.

Parameters
string$headerThe header key, example: Content-Type
string$valueThe header value.
string$message(optional) A message to display with the assertion.
string$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Other'; most tests do not override this default.
Returns
bool TRUE if the assertion succeeded, FALSE otherwise.

References TestBase\assertTrue(), and WebTestBase\drupalGetHeader().

Referenced by HtmlResponseAttachmentsTest\assertTeapotHeaders(), UITestBase\drupalGet(), HtmlResponseAttachmentsTest\testAttachments(), PageCacheTest\testConfigChangePageCache(), ContainerRebuildWebTest\testContainerInvalidation(), NodeTest\testCreate(), NodeTest\testNodes(), ReadTest\testRead(), HtmlResponseAttachmentsTest\testRenderCachedBlock(), StyleSerializerTest\testResponseFormatConfiguration(), ContainerRebuildWebTest\testSetContainerRebuildWithDifferentDeploymentIdentifier(), and DbLogResourceTest\testWatchdog().

Here is the call graph for this function:

Here is the caller graph for this function:

assertMail (   $name,
  $value = '',
  $message = '',
  $group = 'Email' 
)
protected

Asserts that the most recently sent email message has the given value.

The field in $name must have the content described in $value.

Parameters
$nameName of field or message property to assert. Examples: subject, body, id, ...
$valueValue of the field to assert.
$message(optional) A message to display with the assertion. Do not translate messages: use ::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Email'; most tests do not override this default.
Returns
TRUE on pass, FALSE on fail.

References TestBase\assertTrue(), and Drupal\state().

Referenced by MailCaptureTest\testMailSend(), UserAdminTest\testUserAdmin(), and UserPasswordResetTest\testUserPasswordReset().

Here is the call graph for this function:

Here is the caller graph for this function:

assertMailPattern (   $field_name,
  $regex,
  $message = '',
  $group = 'Other' 
)
protected

Asserts that the most recently sent email message has the pattern in it.

Parameters
$field_nameName of field or message property to assert: subject, body, id, ...
$regexPattern to search for.
$message(optional) A message to display with the assertion. Do not translate messages: use ::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Other'; most tests do not override this default.
Returns
TRUE on pass, FALSE on fail.

References TestBase\assertTrue(), WebTestBase\drupalGetMails(), and format_string().

Here is the call graph for this function:

assertMailString (   $field_name,
  $string,
  $email_depth,
  $message = '',
  $group = 'Other' 
)
protected

Asserts that the most recently sent email message has the string in it.

Parameters
$field_nameName of field or message property to assert: subject, body, id, ...
$stringString to search for.
$email_depthNumber of emails to search for string, starting with most recent.
$message(optional) A message to display with the assertion. Do not translate messages: use ::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Other'; most tests do not override this default.
Returns
TRUE on pass, FALSE on fail.

References TestBase\assertTrue(), WebTestBase\drupalGetMails(), and format_string().

Here is the call graph for this function:

assertNoBlockAppears ( Block  $block)
protected

Checks to see whether a block does not appears on the page.

Parameters
\Drupal\block\Entity\Block$blockThe block entity to find on the page.

References TestBase\assertFalse(), WebTestBase\findBlockInstance(), and format_string().

Referenced by DisplayBlockTest\testDeleteBlockDisplay(), DisplayTest\testInvalidDisplayPlugins(), and ShortcutLinksTest\testShortcutBlockAccess().

Here is the call graph for this function:

Here is the caller graph for this function:

assertNoCacheContext (   $not_expected_cache_context)
protected

Asserts that a cache context was not present in the last response.

Parameters
string$not_expected_cache_contextThe expected cache context.

References TestBase\assertFalse(), and WebTestBase\drupalGetHeader().

Referenced by NodeAccessAutoBubblingTest\testNodeAccessCacheabilitySafeguard().

Here is the call graph for this function:

Here is the caller graph for this function:

assertNoCacheTag (   $cache_tag)
protected

Asserts whether an expected cache tag was absent in the last response.

Parameters
string$cache_tagThe cache tag to check.

References TestBase\assertFalse(), and WebTestBase\drupalGetHeader().

Referenced by EarlyRenderingControllerTest\testEarlyRendering(), PageCacheTest\testPageCacheAnonymousRolePermissions(), and SearchPageCacheTagsTest\testSearchText().

Here is the call graph for this function:

Here is the caller graph for this function:

assertNoResponse (   $code,
  $message = '',
  $group = 'Browser' 
)
protected

Asserts the page did not return the specified response code.

Parameters
$codeResponse code. For example 200 is a successful page request. For a list of all codes see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
$message(optional) A message to display with the assertion. Do not translate messages: use ::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Browser'; most tests do not override this default.
Returns
Assertion result.

References TestBase\assertFalse(), and SafeMarkup\format().

Here is the call graph for this function:

assertResponse (   $code,
  $message = '',
  $group = 'Browser' 
)
protected

Asserts the page responds with the specified response code.

Parameters
$codeResponse code. For example 200 is a successful page request. For a list of all codes see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
$message(optional) A message to display with the assertion. Do not translate messages: use ::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Browser'; most tests do not override this default.
Returns
Assertion result.

References TestBase\assertTrue(), and SafeMarkup\format().

Referenced by ColorTest\_testColor(), MenuTest\addMenuLink(), CreateTest\assertCreateEntityInvalidData(), CreateTest\assertCreateEntityInvalidSerialized(), CreateTest\assertCreateEntityNoData(), CreateTest\assertCreateEntityOverRestApi(), CreateTest\assertCreateEntityWithoutProperPermissions(), HtaccessTest\assertFileAccess(), DisplayPageWebTest\assertPagePath(), ContactPersonalTest\checkContactAccess(), ForumTest\createForum(), ContactSitewideTest\deleteContactForms(), MenuTest\deleteCustomMenu(), ManageFieldsTest\deleteField(), ForumTest\deleteForum(), MenuTest\deleteMenuLink(), ImageStylesPathAndUrlTest\doImageStyleUrlAndPathTests(), MenuTest\doMenuLinkFormDefaultsTest(), MenuTest\doMenuTests(), DownloadTest\doPrivateFileTransferTest(), ContentTranslationUITestBase\doTestBasicTranslation(), MenuRouterTest\doTestMenuOptionalPlaceholders(), ContentTranslationUITestBase\doTestTranslationDeletion(), ContentTranslationWorkflowsTest\doTestWorkflows(), UITestBase\drupalGet(), WebTestBase\drupalLogout(), ForumTest\editForumVocabulary(), SessionHttpsTest\getPathFromLocationHeader(), SessionHttpsTest\loginHttp(), SessionHttpsTest\loginHttps(), MenuTest\modifyMenuLink(), MenuTest\moveMenuLink(), MenuTest\resetMenuLink(), SessionTest\sessionReset(), AccessRoleUITest\testAccessRoleUI(), ConfigurationTest\testActionConfiguration(), AddFeedTest\testAddFeed(), AddFeedTest\testAddLongFeed(), PathAliasTest\testAdminAlias(), FrontPageTest\testAdminFrontPage(), ThemeTest\testAdministrationTheme(), BlockAdminThemeTest\testAdminTheme(), PathLanguageTest\testAliasTranslation(), CommentAnonymousTest\testAnonymous(), CommentAdminTest\testApprovalNodeInterface(), DefaultViewsTest\testArchiveView(), DisplayPageWebTest\testArguments(), FeedParserTest\testAtomSample(), HtmlResponseAttachmentsTest\testAttachments(), ResourceTest\testAuthentication(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), BasicAuthTest\testBasicAuth(), CsrfTest\testBasicAuth(), SessionAuthenticationTest\testBasicAuthNoSession(), SessionAuthenticationTest\testBasicAuthSession(), BlockUiTest\testBlockAdminUiPage(), BlockContentCreationTest\testBlockContentCreation(), BlockContentCreationTest\testBlockContentCreationMultipleViewModes(), BlockContentTypeTest\testBlockContentTypeCreation(), BlockContentIntegrationTest\testBlockContentViewTypeArgument(), DisplayBlockTest\testBlockContextualLinks(), MenuTest\testBlockContextualLinks(), BlockUiTest\testBlockDemoUiPage(), BookTest\testBookDelete(), BookTest\testBookExport(), NodeTest\testBundleNormalization(), BlockFormInBlockTest\testCachePerPage(), BlockCacheTest\testCachePerPage(), LocaleLocaleLookupTest\testCircularDependency(), FieldWebTest\testClickSorting(), CommentAdminTest\testCommentAdmin(), CommentInterfaceTest\testCommentInterface(), CommentOperationsTest\testCommentOperations(), CommentRestExportTest\testCommentRestExport(), CommentTypeTest\testCommentTypeCreation(), AdminTest\testCompactMode(), QuickEditLoadingTest\testConcurrentEdit(), PageCacheTest\testConditionalRequests(), PageCacheTest\testConfigChangePageCache(), ConfigTranslationUiTest\testContactConfigEntityTranslation(), ContactLanguageTest\testContactLanguage(), NodeAdminTest\testContentAdminPages(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), RouterTest\testControllerPlaceholders(), RouterTest\testControllerPlaceholdersDefaultValues(), RouterTest\testControllerPlaceholdersDefaultValuesProvided(), CsrfTest\testCookieAuth(), NodeTest\testCreate(), CreateTest\testCreateEntityTest(), CreateTest\testCreateNode(), CreateTest\testCreateResourceRestApiNotEnabled(), CreateTest\testCreateUser(), CreateTest\testCreateWithoutPermission(), CronRunTest\testCronRun(), ConfigEntityStatusUITest\testCRUD(), ConfigEntityTest\testCRUDUI(), QuickEditLoadingTest\testCustomPipeline(), DateFormatsLockedTest\testDateLocking(), DeleteTest\testDelete(), DeleteFeedTest\testDeleteFeed(), DestinationTest\testDestination(), ContextualDynamicContextTest\testDifferentPermissions(), NodeTranslationUITest\testDisabledBundle(), DisabledDisplayTest\testDisabledDisplays(), DisplayFeedTest\testDisabledFeed(), LanguageUILanguageNegotiationTest\testDisableLanguageSwitcher(), SaveUploadTest\testDrupalMovingUploadedFileError(), RouterTest\testDynamicRoutes(), EarlyRenderingControllerTest\testEarlyRendering(), ImageAdminStylesTest\testEditEffect(), ViewEditTest\testEditFormLanguageOptions(), SessionTest\testEmptySessionID(), EntityDisplayModeTest\testEntityFormModeUI(), EntityWithUriCacheTagsTestBase\testEntityUri(), EntityViewControllerTest\testEntityViewController(), EntityDisplayModeTest\testEntityViewModeUI(), UncaughtExceptionTest\testErrorContainer(), ErrorHandlerTest\testErrorHandler(), UncaughtExceptionTest\testExceptionContainer(), SaveUploadTest\testExistingError(), SaveUploadTest\testExistingRename(), SaveUploadTest\testExistingReplace(), ConfigExportUITest\testExport(), ManageFieldsTest\testExternalDestinations(), AddFeedTest\testFeedLabelEscaping(), AggregatorRenderingTest\testFeedPage(), FeedAdminDisplayTest\testFeedUpdateFields(), EntityReferenceAdminTest\testFieldAdminHandler(), FieldUIRouteTest\testFieldUIRoutes(), HtaccessTest\testFileAccess(), FileListingTest\testFileListingPages(), EntityReferenceFileUploadTest\testFileUpload(), DbLogTest\testFilter(), FilterAdminTest\testFilterAdmin(), ImageStyleFlushTest\testFlush(), FilterAdminTest\testFormatAdmin(), FilterFormatAccessTest\testFormatPermissions(), ResourceTest\testFormats(), ManageDisplayTest\testFormatterUI(), ResponseTest\testFormResponse(), StateValuesCleanAdvancedTest\testFormStateValuesCleanAdvanced(), ForumTest\testForum(), ForumUninstallTest\testForumUninstallWithField(), ForumTest\testForumWithNewPost(), ResponseGeneratorTest\testGeneratorHeaderAdded(), BasicAuthTest\testGlobalLoginFloodControl(), GlossaryTest\testGlossaryView(), SaveUploadTest\testHandleDangerousFile(), SaveUploadTest\testHandleExtension(), SaveUploadTest\testHandleFileMunge(), FieldUITest\testHandlerUIAggregation(), HistoryTest\testHistory(), ToolbarHookToolbarTest\testHookToolbar(), FeedParserTest\testHtmlEntitiesSample(), AreaHTTPStatusCodeTest\testHTTPStatusCodeHandler(), QuickEditLoadingTest\testImageField(), ImageStylesPathAndUrlTest\testImageStyleUrlForMissingSourceImage(), ConfigImportUploadTest\testImport(), IndexPhpTest\testIndexPhpHandling(), ExposedFormTest\testInputRequired(), InstallerLanguagePageTest\testInstalled(), InstallerLanguageDirectionTest\testInstalled(), SingleVisibleProfileTest\testInstalled(), DistributionProfileTest\testInstalled(), InstallerTest\testInstaller(), InstallerEmptySettingsTest\testInstaller(), InstallerExistingDatabaseSettingsTest\testInstaller(), InstallerExistingSettingsNoProfileTest\testInstaller(), InstallerExistingSettingsTest\testInstaller(), SimpleTestBrowserTest\testInternalBrowser(), NodeTest\testInvalidBundle(), DisplayTest\testInvalidDisplayPlugins(), ItemsPerPageTest\testItemsPerPage(), LanguageListTest\testLanguageList(), BlockContentListViewsTest\testListing(), BlockContentListTest\testListing(), ConfigEntityListTest\testListUI(), EditorLoadingTest\testLoading(), BasicAuthTest\testLocale(), ToolbarAdminMenuTest\testLocaleTranslationSubtreesHashCacheClear(), ManageFieldsTest\testLockedField(), UncaughtExceptionTest\testLoggerException(), UncaughtExceptionTest\testLostDatabaseConnection(), NoHelpTest\testMainPageNoHelp(), CronRunTest\testManualCron(), MenuAccessTest\testMenuBlockLinksAccessCheck(), ToolbarAdminMenuTest\testMenuLinkUpdateSubtreesHashCacheClear(), DisplayPathTest\testMenuOptions(), MenuTest\testMenuParentsJsAccess(), MinimalTest\testMinimal(), NodeTest\testMissingBundle(), UncaughtExceptionTest\testMissingDependency(), UncaughtExceptionTest\testMissingDependencyCustomErrorHandler(), ModulesListFormWebTest\testModuleListForm(), SearchConfigSettingsFormTest\testMultipleSearchPages(), NodeCommentsTest\testNewComments(), NodeAccessBaseTableTest\testNodeAccessBasic(), NodeCreationTest\testNodeAddWithoutContentTypes(), PathAliasTest\testNodeAlias(), NodeContextualLinksTest\testNodeContextualLinks(), NodeTest\testNodes(), NodeHelpTest\testNodeShowHelpText(), NodeTypeTest\testNodeTypeCreation(), NodeTypeTest\testNodeTypeDeletion(), NodeIntegrationTest\testNodeViewTypeArgument(), ToolbarAdminMenuTest\testNonCurrentUserAccountUpdates(), ManageFieldsTest\testNonExistentFieldUrls(), SaveUploadTest\testNormal(), UpdateScriptTest\testNoUpdateFunctionality(), ContentTranslationOperationsTest\testOperationTranslateLink(), OverrideDisplaysTest\testOverrideDisplays(), DbLogTest\testOverviewLinks(), PageCacheTest\testPageCacheAnonymous403404(), DisplayTest\testPageContextualLinks(), DisplayPageWebTest\testPageDisplayMenu(), BlockContentPageViewTest\testPageEdit(), LanguagePathMonolingualTest\testPageLinks(), PageViewTest\testPageView(), UpdateTest\testPatchUpdate(), RouterPermissionTest\testPermissionAccess(), ContactPersonalTest\testPersonalContactAccess(), BasicAuthTest\testPerUserLoginFloodControl(), PreviewTest\testPreviewAdditionalInfo(), PreviewTest\testPreviewContextual(), PreviewTest\testPreviewError(), PreviewTest\testPreviewUI(), DownloadTest\testPublicFileTransfer(), AuthTest\testRead(), ReadTest\testRead(), RedirectTest\testRedirectFromErrorPages(), HtmlResponseAttachmentsTest\testRenderCachedBlock(), ReportTest\testReport(), ExposedFormTest\testResetButton(), ReadTest\testResourceStructure(), StyleSerializerTest\testResponseFormatConfiguration(), ResponsiveImageAdminUITest\testResponsiveImageAdmin(), UserRoleAdminTest\testRoleAdministration(), RouterTest\testRouterMatching(), RouterTest\testRouterResponsePsr7(), RowUITest\testRowUI(), FeedParserTest\testRSS091Sample(), SearchPageTextTest\testSearchText(), StyleSerializerTest\testSerializerViewsUI(), SessionAuthenticationTest\testSessionFromBasicAuthenticationDoesNotLeak(), AggregatorAdminTest\testSettingsPage(), ShortcutLinksTest\testShortcutLinkAdd(), ShortcutSetsTest\testShortcutSetDeleteDefault(), ShortcutSetsTest\testShortcutSetSwitchOwn(), FormValuesTest\testSimpleAjaxFormValue(), ConfigTranslationUiTest\testSingleLanguageUI(), FileFieldWidgetTest\testSingleValuedWidget(), ContactSitewideTest\testSiteWideContact(), SortingTest\testSorting(), ConfigTranslationUiTest\testSourceAndTargetLanguage(), ConfigTranslationUiTest\testSourceValueDuplicateSave(), AccessTest\testStaticAccessPlugin(), TrustedHostsTest\testStatusPageWithConfiguration(), TrustedHostsTest\testStatusPageWithoutConfiguration(), LocaleTranslationUiTest\testStringTranslation(), ImageAdminStylesTest\testStyle(), ExposedFormTest\testSubmitButton(), ToolbarAdminMenuTest\testSubtreesJsonRequest(), UpdateScriptTest\testSuccessfulUpdateFunctionality(), HtaccessTest\testSvgzContentEncoding(), EditorSecurityTest\testSwitchingSecurity(), TaggedWithTest\testTaggedWith(), RssTest\testTaxonomyRss(), DbLogTest\testTemporaryUser(), PathTaxonomyTermTest\testTermAlias(), TermTest\testTermInterface(), EntityFilteringThemeTest\testThemedEntity(), ConfigTranslationUiThemeTest\testThemeDiscovery(), ThemeTest\testThemeSettings(), QuickEditLoadingTest\testTitleBaseField(), ToolkitSetupFormTest\testToolkitSetupForm(), CommentTranslationUITest\testTranslateLinkCommentAdminPage(), TermTranslationUITest\testTranslateLinkVocabularyAdminPage(), NodeTranslationUITest\testTranslationLinkTheme(), TwigSettingsTest\testTwigInlineWithAutoReload(), LanguageUILanguageNegotiationTest\testUILanguageNegotiation(), BasicAuthTest\testUnauthorizedErrorMessage(), UncaughtExceptionTest\testUncaughtException(), UncaughtExceptionTest\testUncaughtExceptionCustomExceptionHandler(), UnsavedPreviewTest\testUnsavedPageDisplayPreview(), UpdateScriptTest\testUpdateAccess(), UpdatePathTestBaseFilledTest\testUpdatedSite(), UpdatePathRC1TestBaseFilledTest\testUpdatedSite(), UpdateFeedItemTest\testUpdateFeedItem(), BlockContextMappingUpdateTest\testUpdateHookN(), UpdateTest\testUpdateUser(), UpdateUploadTest\testUploadModule(), UrlAlterFunctionalTest\testUrlAlter(), SimpleTestBrowserTest\testUserAgentValidation(), UserCancelTest\testUserCancelWithoutPermission(), BulkFormAccessTest\testUserDeleteAccess(), BulkFormAccessTest\testUserEditAccess(), UserAdminListingTest\testUserListing(), UserPasswordResetTest\testUserPasswordReset(), ToolbarAdminMenuTest\testUserRoleUpdateSubtreesHashCacheClear(), QuickEditIntegrationLoadingTest\testUsersWithoutPermission(), QuickEditLoadingTest\testUserWithoutPermission(), QuickEditIntegrationLoadingTest\testUserWithPermission(), QuickEditLoadingTest\testUserWithPermission(), UserRegistrationTest\testUuidFormState(), ViewNonTranslatableEntityTest\testViewNoTranslatableEntity(), ViewsListTest\testViewsListLimit(), ConfigTranslationUiTest\testViewsTranslationUI(), VocabularyLanguageTest\testVocabularyDefaultLanguageForTerms(), VocabularyPermissionsTest\testVocabularyPermissionsTaxonomyTerm(), DbLogResourceTest\testWatchdog(), UpdatePathWithBrokenRoutingTest\testWithBrokenRouting(), OverrideDisplaysTest\testWizardMixedDefaultOverriddenDisplays(), AggregatorTestBase\updateFeedItems(), UpdateScriptTest\updateScriptTest(), HelpTest\verifyHelp(), MenuTest\verifyMenuLink(), and DbLogTest\verifySort().

Here is the call graph for this function:

assertUrl (   $path,
array  $options = array(),
  $message = '',
  $group = 'Other' 
)
protected

Passes if the internal browser's URL matches the given path.

Parameters
\Drupal\Core\Url | string$pathThe expected system path or URL.
$options(optional) Any additional options to pass for $path to the url generator.
$message(optional) A message to display with the assertion. Do not translate messages: use ::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
$group(optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Other'; most tests do not override this default.
Returns
TRUE on pass, FALSE on fail.

References TestBase\assertEqual(), SafeMarkup\format(), Url\fromUri(), and UrlHelper\isExternal().

Referenced by DisplayPathTest\doAdvancedPathsValidationTest(), DisplayPathTest\doBasicPathUITest(), MenuTest\doMenuTests(), ContentTranslationWorkflowsTest\doTestWorkflows(), AddFeedTest\testAddFeed(), PathAliasTest\testAdminAlias(), MenuRouterTest\testAuthUserUserLogin(), ProcessingTest\testBatchRedirectFinishedCallback(), BlockTest\testBlock(), DisplayBlockTest\testBlockCategory(), BlockContentTypeTest\testBlockContentTypeEditing(), BlockUiTest\testBlockPlacementIndicator(), BlockTest\testBlockThemeSelector(), BulkFormTest\testBulkForm(), CachedDataUITest\testCacheData(), BlockFormInBlockTest\testCachePerPage(), CommentInterfaceTest\testCommentInterface(), CommentTypeTest\testCommentTypeEditing(), WizardTest\testCommentWizard(), AdminTest\testCompactMode(), ConfigEntityTest\testCRUDUI(), DateTimeTest\testDateFormatConfiguration(), ViewEditTest\testDeleteLink(), NodeRevisionsUiBypassAccessTest\testDisplayRevisionTab(), DisplayCRUDTest\testDuplicateDisplay(), ManageFieldsTest\testDuplicateFieldName(), DuplicateTest\testDuplicateView(), ExposedFormUITest\testExposedAdminUi(), ManageFieldsTest\testExternalDestinations(), FilterAdminTest\testFilterAdmin(), FilterFormatAccessTest\testFormatWidgetPermissions(), ForumIndexTest\testForumIndexStatus(), InstallerLanguagePageTest\testInstalled(), InstallerLanguageDirectionTest\testInstalled(), SingleVisibleProfileTest\testInstalled(), DistributionProfileTest\testInstalled(), InstallerTest\testInstaller(), InstallerEmptySettingsTest\testInstaller(), InstallerExistingDatabaseSettingsTest\testInstaller(), InstallerExistingSettingsNoProfileTest\testInstaller(), InstallerExistingSettingsTest\testInstaller(), ItemsPerPageTest\testItemsPerPage(), LanguageConfigurationTest\testLanguageConfiguration(), LanguageCustomLanguageConfigurationTest\testLanguageConfiguration(), LanguageListTest\testLanguageList(), LanguageSwitchingTest\testLanguageSessionSwitchLinks(), RouterTest\testLeadingSlashes(), DisplayTest\testLinkDisplay(), UpdateCoreTest\testLocalActions(), ToolbarAdminMenuTest\testLocaleTranslationSubtreesHashCacheClear(), UserLoginTest\testLoginCacheTagsAndDestination(), DisplayPathTest\testMenuOptions(), NodeEditFormTest\testNodeEdit(), AjaxFormCacheTest\testQueryString(), RedirectTest\testRedirect(), RedirectTest\testRedirectFromErrorPages(), UserPasswordResetTest\testResetImpersonation(), RowUITest\testRowUI(), BlockContentTypeTest\testsBlockContentAddTypes(), PagePreviewTest\testSimultaneousPreview(), ConfigTranslationUiTest\testSiteInformationTranslationUi(), SortingTest\testSorting(), LocaleImportFunctionalTest\testStandalonePoFile(), TermTest\testTermReorder(), LanguageBrowserDetectionTest\testUIBrowserLanguageMappings(), HandlerTest\testUICRUD(), UninstallTest\testUninstallPage(), NodeCreationTest\testUnpublishedNodeCreation(), UpdateUploadTest\testUploadModule(), UserBlocksTest\testUserLoginBlock(), WizardTest\testWizardFieldLength(), and ManageFieldsTest\updateField().

Here is the call graph for this function:

buildUrl (   $path,
array  $options = array() 
)
protected

Builds an a absolute URL from a system path or a URL object.

Parameters
string | \Drupal\Core\Url$pathA system path or a URL.
array$optionsOptions to be passed to Url::fromUri().
Returns
string An absolute URL stsring.

References Url\fromUri(), WebTestBase\getAbsoluteUrl(), and UrlHelper\isExternal().

Referenced by UITestBase\drupalGet(), WebTestBase\drupalGet(), WebTestBase\drupalHead(), WebTestBase\drupalPost(), and RESTTestBase\httpRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

checkForMetaRefresh ( )
protected

Checks for meta refresh tag and if found call drupalGet() recursively.

This function looks for the http-equiv attribute to be set to "Refresh" and is case-sensitive.

Returns
Either the new page content or FALSE.

References Html\decodeEntities(), WebTestBase\drupalGet(), and WebTestBase\getAbsoluteUrl().

Referenced by WebTestBase\drupalGet(), WebTestBase\drupalPostForm(), and AddFeedTest\testFeedLabelEscaping().

Here is the call graph for this function:

Here is the caller graph for this function:

clickLink (   $label,
  $index = 0 
)
protected

Follows a link by complete name.

Will click the first link found with this link text by default, or a later one if an index is given. Match is case sensitive with normalized space. The label is translated label.

If the link is discovered and clicked, the test passes. Fail otherwise.

Parameters
string | \Drupal\Component\Render\MarkupInterface$labelText between the anchor tags.
int$indexLink position counting from zero.
Returns
string|bool Page contents on success, or FALSE on failure.

References WebTestBase\clickLinkHelper().

Referenced by ManageFieldsTest\addPersistentFieldStorage(), ManageFieldsTest\deleteField(), ForumTest\deleteForum(), DisplayPathTest\doBasicPathUITest(), MenuTest\doMenuTests(), EntityFormTest\doTestFormCRUD(), EntityFormTest\doTestMultilingualFormCRUD(), ContentTranslationWorkflowsTest\doTestWorkflows(), ShortcutLinksTest\testAccessShortcutsPermission(), ConfigurationTest\testActionConfiguration(), PathLanguageTest\testAliasTranslation(), AnalyzeTest\testAnalyzeBasic(), CommentAdminTest\testApprovalNodeInterface(), BlockTest\testBlock(), DisplayBlockTest\testBlockCategory(), BlockContentCreationTest\testBlockContentCreationMultipleViewModes(), BlockContentTypeTest\testBlockContentTypeCreation(), BlockContentTypeTest\testBlockContentTypeEditing(), BlockUiTest\testBlockDemoUiPage(), BlockTest\testBlockVisibility(), BookTest\testBookExport(), CachedDataUITest\testCacheData(), FieldWebTest\testClickSorting(), CommentAdminTest\testCommentAdmin(), CommentTypeTest\testCommentTypeEditing(), ConfigEntityTest\testCRUDUI(), DateTimeTest\testDateFormatConfiguration(), ViewEditTest\testDeleteLink(), ImageAdminStylesTest\testEditEffect(), EntityDisplayModeTest\testEntityFormModeUI(), EntityDisplayModeTest\testEntityViewModeUI(), EntityReferenceAdminTest\testFieldAdminHandler(), ConfigTranslationUiTest\testFieldConfigTranslation(), FilterAdminTest\testFormatAdmin(), FilterFormatAccessTest\testFormatWidgetPermissions(), ForumIndexTest\testForumIndexStatus(), ForumUninstallTest\testForumUninstallWithField(), ForumTest\testForumWithNewPost(), BrowserTest\testGetAbsoluteUrl(), HelpTest\testHelp(), FileSaveHtaccessLoggingTest\testHtaccessSave(), ImageAdminStylesTest\testImageStyleAccess(), ThemeTest\testInstallAndSetAsDefault(), FeedParserTest\testInvalidFeed(), BlockLanguageTest\testLanguageBlockVisibilityLanguageDelete(), LanguageListTest\testLanguageList(), LanguageSwitchingTest\testLanguageSessionSwitchLinks(), DisplayTest\testLinkDisplay(), BlockContentListViewsTest\testListing(), BlockContentListTest\testListing(), ConfigEntityListMultilingualTest\testListUI(), ConfigEntityListTest\testListUI(), UpdateCoreTest\testLocalActions(), CronRunTest\testManualCron(), UpdateCoreTest\testModulePageRegularUpdate(), UpdateCoreTest\testModulePageSecurityUpdate(), UpdateCoreTest\testModulePageUpToDate(), SearchConfigSettingsFormTest\testMultipleSearchPages(), NodeAccessRebuildTest\testNodeAccessRebuild(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNoAccessModules(), NodeEditFormTest\testNodeEdit(), TermTest\testNodeTermCreationAndDeletion(), NodeTitleTest\testNodeTitle(), NodeTypeTest\testNodeTypeDeletion(), UpdateScriptTest\testNoUpdateFunctionality(), PageEditTest\testPageEdit(), LanguagePathMonolingualTest\testPageLinks(), PagePreviewTest\testPagePreview(), PagePreviewTest\testPagePreviewWithRevisions(), EntityListBuilderTest\testPager(), ConfigEntityListTest\testPager(), PreviewTest\testPreviewUI(), CommentBlockTest\testRecentCommentBlock(), DisplayTest\testReorderDisplay(), UpdateScriptTest\testRequirements(), TermTest\testReSavingTags(), UserRoleAdminTest\testRoleAdministration(), BlockContentTypeTest\testsBlockContentAddTypes(), SearchConfigSettingsFormTest\testSearchModuleSettingsPage(), SearchPageTextTest\testSearchText(), AggregatorAdminTest\testSettingsPage(), ShortcutLinksTest\testShortcutQuickLink(), ShortcutSetsTest\testShortcutSetAdd(), ShortcutSetsTest\testShortcutSetRename(), ConfigTranslationUiTest\testSiteInformationTranslationUi(), ContactSitewideTest\testSiteWideContact(), UpdateScriptTest\testSuccessfulUpdateFunctionality(), StyleSummaryTest\testSummaryView(), VocabularyUiTest\testTaxonomyAdminDeletingVocabulary(), TermTest\testTaxonomyNode(), TermTest\testTermInterface(), ThemeTest\testUninstallingThemes(), UpdatePathTestBaseFilledTest\testUpdatedSite(), UpdatePathRC1TestBaseFilledTest\testUpdatedSite(), UpdateSchemaTest\testUpdateHooks(), UpdateUploadTest\testUploadModule(), ConfigTranslationUiTest\testViewsTranslationUI(), VocabularyUiTest\testVocabularyInterface(), AggregatorTestBase\updateFeedItems(), UpdateScriptTest\updateScriptTest(), and MenuTest\verifyMenuLink().

Here is the call graph for this function:

clickLinkHelper (   $label,
  $index,
  $pattern 
)
protected

Provides a helper for ::clickLink() and ::clickLinkPartialName().

Parameters
string | \Drupal\Component\Render\MarkupInterface$labelText between the anchor tags, uses starts-with().
int$indexLink position counting from zero.
string$patternA pattern to use for the XPath.
Returns
bool|string Page contents on success, or FALSE on failure.

References WebTestBase\drupalGet(), TestBase\fail(), SafeMarkup\format(), WebTestBase\getAbsoluteUrl(), and TestBase\pass().

Referenced by WebTestBase\clickLink(), and WebTestBase\clickLinkPartialName().

Here is the call graph for this function:

Here is the caller graph for this function:

clickLinkPartialName (   $label,
  $index = 0 
)
protected

Follows a link by partial name.

If the link is discovered and clicked, the test passes. Fail otherwise.

Parameters
string | \Drupal\Component\Render\MarkupInterface$labelText between the anchor tags, uses starts-with().
int$indexLink position counting from zero.
Returns
string|bool Page contents on success, or FALSE on failure.
See Also
::clickLink()

References WebTestBase\clickLinkHelper().

Referenced by MenuTest\addCustomMenu(), BlockXssTest\doBlockContentTest(), BlockXssTest\doMenuTest(), BlockXssTest\doViewTest(), DisplayBlockTest\testBlockCategory(), BlockLanguageCacheTest\testBlockLinks(), BlockXssTest\testBlockXss(), BlockUiTest\testCandidateBlockList(), BlockUiTest\testContextAwareBlocks(), BlockUiTest\testContextAwareUnsatisfiedBlocks(), ItemsPerPageTest\testItemsPerPage(), BlockXssTest\testNoUnexpectedEscaping(), OverrideDisplaysTest\testOverrideDisplays(), BlockContentTypeTest\testsBlockContentAddTypes(), MenuTest\testSystemMenuRename(), OverrideDisplaysTest\testWizardMixedDefaultOverriddenDisplays(), and BlockXssTest\testXssInCategory().

Here is the call graph for this function:

Here is the caller graph for this function:

cronRun ( )
protected

Runs cron in the Drupal installed by Simpletest.

References WebTestBase\drupalGet(), and Drupal\state().

Referenced by SearchCommentTest\assertCommentAccess(), SearchCommentTest\testAddNewComment(), FloodTest\testCleanUp(), AggregatorCronTest\testCron(), CronRunTest\testCronExceptions(), CronQueueTest\testExceptions(), StatisticsAdminTest\testExpiredLogs(), UpdateCoreTest\testModulePageRunCron(), SearchMultilingualTest\testMultilingualSearchFilter(), reEnableModuleFieldTest\testReEnabledField(), SearchCommentTest\testSearchResultsComment(), and LocaleUpdateCronTest\testUpdateCron().

Here is the call graph for this function:

Here is the caller graph for this function:

curlClose ( )
protected

Close the cURL handler and unset the handler.

Referenced by SessionTest\sessionReset(), WebTestBase\tearDown(), ResourceTest\testAuthentication(), BasicAuthTest\testBasicAuth(), SessionTest\testEmptySessionID(), ResourceTest\testFormats(), BasicAuthTest\testLocale(), and AuthTest\testRead().

Here is the caller graph for this function:

curlExec (   $curl_options,
  $redirect = FALSE 
)
protected

Initializes and executes a cURL request.

Parameters
$curl_optionsAn associative array of cURL options to set, where the keys are constants defined by the cURL library. For a list of valid options, see http://www.php.net/manual/function.curl-setopt.php
$redirectFALSE if this is an initial request, TRUE if this request is the result of a redirect.
Returns
The content returned from the call to curl_exec().
See Also
curlInitialize()

References TestBase\assertTrue(), WebTestBase\curlInitialize(), WebTestBase\drupalGetHeader(), SafeMarkup\format(), format_size(), Drupal\request(), and Drupal\url().

Referenced by WebTestBase\drupalGet(), WebTestBase\drupalHead(), WebTestBase\drupalPost(), WebTestBase\drupalPostForm(), HistoryTest\getNodeReadTimestamps(), HistoryTest\markNodeAsRead(), NodeContextualLinksTest\renderContextualLinks(), ContentTranslationContextualLinksTest\renderContextualLinks(), and CommentNewIndicatorTest\renderNewCommentsNodeLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

curlHeaderCallback (   $curlHandler,
  $header 
)
protected

Reads headers and registers errors received from the tested site.

Parameters
$curlHandlerThe cURL handler.
$headerAn header.
See Also
_drupal_log_error().
curlInitialize ( )
protected

Initializes the cURL connection.

If the simpletest_httpauth_credentials variable is set, this function will add HTTP authentication headers. This is necessary for testing sites that are protected by login credentials from public access. See the description of $curl_options for other options.

Referenced by WebTestBase\curlExec().

Here is the caller graph for this function:

doInstall ( )
protected

Execute the non-interactive installer.

See Also
install_drupal()

References WebTestBase\installParameters().

Referenced by WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalBuildEntityView ( EntityInterface  $entity,
  $view_mode = 'full',
  $langcode = NULL,
  $reset = FALSE 
)
protected

Builds the renderable view of an entity.

Entities postpone the composition of their renderable arrays to #pre_render functions in order to maximize cache efficacy. This means that the full renderable array for an entity is constructed in drupal_render(). Some tests require the complete renderable array for an entity outside of the drupal_render process in order to verify the presence of specific values. This method isolates the steps in the render process that produce an entity's renderable array.

Parameters
\Drupal\Core\Entity\EntityInterface$entityThe entity to prepare a renderable array for.
string$view_mode(optional) The view mode that should be used to build the entity.
null$langcode(optional) For which language the entity should be prepared, defaults to the current content language.
bool$reset(optional) Whether to clear the cache for this entity.
Returns
array
See Also
drupal_render()

References Element\children(), and Drupal\service().

Referenced by ImageFieldDefaultImagesTest\testDefaultImages(), and NodeEntityViewModeAlterTest\testNodeViewModeChange().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalCompareFiles (   $file1,
  $file2 
)
protected

Compare two files based on size and file name.

drupalCreateContentType ( array  $values = array())
protected

Creates a custom content type based on default settings.

Parameters
array$valuesAn array of settings to change from the defaults. Example: 'type' => 'foo'.
Returns
Created content type.

References TestBase\assertEqual(), SafeMarkup\format(), Entity\load(), and Drupal\service().

Referenced by ConfigTranslationListUiTest\doContentTypeListTest(), ConfigTranslationListUiTest\doFieldListTest(), FrontPageTest\doTestFrontPageViewCacheTags(), TaxonomyTestBase\mockStandardInstall(), ResponseGeneratorTest\setUp(), FieldUIIndentationTest\setUp(), StatisticsAttachedTest\setUp(), TaxonomyTestBase\setUp(), LocalePathTest\setUp(), ResponsiveImageFieldUiTest\setUp(), PageTitleTest\setUp(), WizardTest\setUp(), PrivateFileOnTranslatedEntityTest\setUp(), NodeTestBase\setUp(), AggregatorTestBase\setUp(), FilterUITest\setUp(), ManageDisplayTest\setUp(), NodeFormSaveChangedTimeTest\setUp(), FieldDefaultValueCallbackTest\setUp(), SelectionTest\setUp(), FieldEntityTest\setUp(), NodeHelpTest\setUp(), MenuLinkTest\setUp(), NodeLanguageTest\setUp(), BooleanFormatterSettingsTest\setUp(), FilterAdminTest\setUp(), EntityReferenceAdminTest\setUp(), BulkFormAccessTest\setUp(), FieldGroupRowsWebTest\setUp(), ManageFieldsTest\setUp(), CommentTranslationUITest\setupBundle(), EntityReferenceFieldTranslatedReferenceViewTest\setUpContentTypes(), BookTest\testBookNavigationCacheContext(), BulkFormTest\testBulkForm(), CommentFieldsTest\testCommentDefaultFields(), CommentFieldsTest\testCommentFieldDelete(), CommentFieldsTest\testCommentFieldLinksNonDefaultName(), CommentTypeTest\testCommentTypeDeletion(), ConditionFormTest\testConfigForm(), LocaleContentTest\testContentTypeDirLang(), LocaleContentTest\testContentTypeLanguageConfiguration(), ContentTranslationEntityBundleUITest\testContentTypeUI(), FieldUIDeleteTest\testDeleteField(), ManageFieldsTest\testDeleteField(), DisplayAttachmentTest\testDisabledAttachments(), NodeTranslationUITest\testDisabledBundle(), DisabledDisplayTest\testDisabledDisplays(), DisplayFeedTest\testDisabledFeed(), ConfigImportUITest\testEntityBundleDelete(), EntityTranslationFormTest\testEntityFormLanguage(), EntityReferenceFieldDefaultValueTest\testEntityReferenceDefaultConfigValue(), EntityReferenceXSSTest\testEntityReferenceXSS(), ExposedFormTest\testExposedBlock(), TaxonomyIndexTidUiTest\testExposedFilter(), DisplayFeedTest\testFeedFieldOutput(), DisplayFeedTest\testFeedOutput(), StyleSerializerTest\testFieldapiField(), LinkFieldUITest\testFieldUI(), HtaccessTest\testFileAccess(), FilterHooksTest\testFilterHooks(), GlossaryTest\testGlossaryView(), HandlerTest\testHandlerHelpEscaping(), HandlerAllTest\testHandlers(), ItemsPerPageTest\testItemsPerPage(), PagerTest\testLimit(), SearchMultilingualTest\testMultilingualSearchFilter(), NodeContextualLinksTest\testNodeContextualLinks(), NodeTypeTest\testNodeTypeCreation(), LanguageConfigurationElementTest\testNodeTypeDelete(), NodeTypeTest\testNodeTypeDeletion(), NodeTypeTranslationTest\testNodeTypeTitleLabelTranslation(), NodeTypeTranslationTest\testNodeTypeTranslation(), LanguageConfigurationElementTest\testNodeTypeUpdate(), NodeIntegrationTest\testNodeViewTypeArgument(), PagerTest\testNoLimit(), PagerTest\testNormalPager(), NumberFieldTest\testNumberFormatter(), OverrideDisplaysTest\testOverrideDisplays(), PagerTest\testPagerConfigTranslation(), PagerTest\testPagerLocale(), NodeContextualLinksTest\testPageWithDisabledContextualModule(), PreviewTest\testPreviewWithPagersUI(), PagerTest\testRenderNullPager(), StyleSerializerTest\testRestViewExposedFilter(), SearchPageCacheTagsTest\testSearchTagsBubbling(), SortingTest\testSorting(), DateTimeTest\testTimeZoneHandling(), UnsavedPreviewTest\testUnsavedPageDisplayPreview(), UserTimeZoneTest\testUserTimeZone(), FieldApiDataTest\testViewsData(), BasicTest\testWizardForm(), and OverrideDisplaysTest\testWizardMixedDefaultOverriddenDisplays().

Here is the call graph for this function:

drupalCreateNode ( array  $settings = array())
protected

Creates a node based on default settings.

Parameters
array$settings(optional) An associative array of settings for the node, as used in entity_create(). Override the defaults by specifying the key and value in the array, for example:
$this->drupalCreateNode(array(
'title' => t('Hello, world!'),
'type' => 'article',
));
The following defaults are provided:
  • body: Random string using the default filter format:
    $settings['body'][0] = array(
    'value' => $this->randomMachineName(32),
    'format' => filter_default_format(),
    );
  • title: Random string.
  • type: 'page'.
  • uid: The currently logged in user, or anonymous.
Returns
The created node entity.

References Drupal\currentUser().

Referenced by CommentTranslationUITest\createEntity(), MenuTest\doMenuTests(), ArgumentDateTimeTest\setUp(), SortDateTimeTest\setUp(), NodeAccessAutoBubblingTest\setUp(), FilterDateTest\setUp(), FilterDateTimeTest\setUp(), NodeFormSaveChangedTimeTest\setUp(), NodeAccessGrantsCacheContextTest\setUp(), SelectionTest\setUp(), TaxonomyTermArgumentDepthTest\setUp(), SearchPageCacheTagsTest\setUp(), TaxonomyTermFilterDepthTest\setUp(), BulkFormTest\setUp(), NodeLanguageTest\setUp(), NodeRevisionsTest\setUp(), HandlerFieldFieldTest\setUp(), FieldGroupRowsWebTest\setUp(), SearchCommentTest\testAddNewComment(), PathAliasTest\testAdminAlias(), PathLanguageTest\testAliasTranslation(), DefaultViewsTest\testArchiveView(), BookTest\testBookNavigationCacheContext(), BookTest\testBookOutline(), BulkFormTest\testBulkForm(), CommentTitleTest\testCommentEmptyTitles(), CommentFieldsTest\testCommentFieldDelete(), CommentFieldsTest\testCommentFieldLinksNonDefaultName(), CommentFieldsTest\testCommentInstallAfterContentModule(), CommentInterfaceTest\testCommentInterface(), CommentPagerTest\testCommentNewPageIndicator(), CommentPagerTest\testCommentOrderingThreading(), NodeAccessPagerTest\testCommentPager(), CommentPagerTest\testCommentPaging(), CommentTitleTest\testCommentPopulatedTitles(), CommentThreadingTest\testCommentThreading(), CommentTokenReplaceTest\testCommentTokenReplacement(), NodeAdminTest\testContentAdminPages(), NodeAdminTest\testContentAdminSort(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), ContentTranslationOperationsTest\testContentTranslationOverviewAccess(), LocaleContentTest\testContentTypeDirLang(), LocaleContentTest\testContentTypeLanguageConfiguration(), ImageFieldDefaultImagesTest\testDefaultImages(), ContextualDynamicContextTest\testDifferentPermissions(), DisplayAttachmentTest\testDisabledAttachments(), NodeTranslationUITest\testDisabledBundle(), DisabledDisplayTest\testDisabledDisplays(), DisplayFeedTest\testDisabledFeed(), FilterSecurityTest\testDisableFilterModule(), NodeRevisionsUiBypassAccessTest\testDisplayRevisionTab(), FieldDropButtonTest\testDropbutton(), FrontPageTest\testDrupalFrontPage(), PathAliasTest\testDuplicateNodeAlias(), ConfigImportUITest\testEntityBundleDelete(), UpcastingTest\testEntityLanguage(), EntityReferenceFieldDefaultValueTest\testEntityReferenceDefaultValue(), EntityReferenceXSSTest\testEntityReferenceXSS(), SearchExactTest\testExactQuery(), TaxonomyIndexTidUiTest\testExposedFilter(), DisplayFeedTest\testFeedFieldOutput(), DisplayFeedTest\testFeedOutput(), StyleSerializerTest\testFieldapiField(), HtaccessTest\testFileAccess(), FileFieldRSSContentTest\testFileFieldRSSContent(), FileListingTest\testFileListingPages(), FilterUidRevisionTest\testFilter(), ForumIntegrationTest\testForumIntegration(), NodeAccessPagerTest\testForumPager(), ForumUninstallTest\testForumUninstallWithField(), ResponseGeneratorTest\testGeneratorHeaderAdded(), ArgumentStringTest\testGlossary(), GlossaryTest\testGlossaryView(), HistoryTimestampTest\testHandlers(), NodeLinksTest\testHideLinks(), MenuLinkTest\testHierarchicalMenuLinkVisibility(), NodeViewTest\testHtmlHeadLinks(), SearchRankingTest\testHTMLRankings(), ItemsPerPageTest\testItemsPerPage(), PagerTest\testLimit(), EditorLoadingTest\testLoading(), NodeViewTest\testMultiByteUtf8(), SearchMultilingualTest\testMultilingualSearchFilter(), NodeAccessTest\testNodeAccess(), NodeAccessLanguageTest\testNodeAccess(), NodeAccessFieldTest\testNodeAccessAdministerField(), NodeAccessLanguageTest\testNodeAccessPrivate(), NodeAccessLanguageTest\testNodeAccessQueryTag(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNodeGrants(), NodeAccessRecordsTest\testNodeAccessRecords(), PathAliasTest\testNodeAlias(), NodeAttributesTest\testNodeAttributes(), NodeContextualLinksTest\testNodeContextualLinks(), BulkFormAccessTest\testNodeDeleteAccess(), FileFieldDisplayTest\testNodeDisplay(), OptionsFieldUITest\testNodeDisplay(), BulkFormAccessTest\testNodeEditAccess(), NodeRevisionsUiTest\testNodeFormSaveWithoutRevision(), NodeLoadMultipleTest\testNodeMultipleLoad(), NodeRevisionsUiTest\testNodeRevisionDoubleEscapeFix(), RevisionRelationshipsTest\testNodeRevisionRelationship(), NodeRevisionsTest\testNodeRevisionWithoutLogMessage(), NodeRSSContentTest\testNodeRSSContent(), NodeSaveTest\testNodeSaveOnInsert(), NodeHelpTest\testNodeShowHelpText(), EntityReferenceFieldAttributesTest\testNodeTeaser(), NodeTemplateSuggestionsTest\testNodeThemeHookSuggestions(), NodeTitleTest\testNodeTitle(), NodeTitleXSSTest\testNodeTitleXSS(), NodeTypeTest\testNodeTypeDeletion(), NodeIntegrationTest\testNodeViewTypeArgument(), NoJavaScriptAnonymousTest\testNoJavaScript(), PagerTest\testNoLimit(), PagerTest\testNormalPager(), ContentTranslationOperationsTest\testOperationTranslateLink(), OptionsFieldUITest\testOptionsAllowedValuesFloat(), OptionsFieldUITest\testOptionsAllowedValuesInteger(), OptionsFieldUITest\testOptionsAllowedValuesText(), OverrideDisplaysTest\testOverrideDisplays(), PageCacheTagsIntegrationTest\testPageCacheTags(), PagerTest\testPagerConfigTranslation(), PagerTest\testPagerLocale(), PageViewTest\testPageView(), NodeContextualLinksTest\testPageWithDisabledContextualModule(), PathAliasTest\testPathCache(), PathAdminTest\testPathFiltering(), LocalePathTest\testPathLanguageConfiguration(), SearchNodeDiacriticsTest\testPhraseSearchPunctuation(), SearchNodePunctuationTest\testPhraseSearchPunctuation(), UserPictureTest\testPictureOnNodeComment(), StatisticsReportsTest\testPopularContentBlock(), SearchPreprocessLangcodeTest\testPreprocessLangcode(), SearchPreprocessLangcodeTest\testPreprocessStemming(), PreviewTest\testPreviewWithPagersUI(), PrivateFileOnTranslatedEntityTest\testPrivateLanguageFile(), SearchQueryAlterTest\testQueryAlter(), NodeBlockFunctionalTest\testRecentNodeBlock(), PagerTest\testRenderNullPager(), StyleSerializerTest\testRestViewExposedFilter(), UpcastingTest\testSameTypes(), SearchNodeUpdateAndDeletionTest\testSearchIndexUpdateOnNodeChange(), SearchNodeUpdateAndDeletionTest\testSearchIndexUpdateOnNodeDeletion(), SearchCommentTest\testSearchResultsComment(), SearchCommentTest\testSearchResultsCommentAccess(), PagePreviewTest\testSimultaneousPreview(), SortingTest\testSorting(), StatisticsTokenReplaceTest\testStatisticsTokenReplacement(), StatusExtraTest\testStatusExtra(), EditorLoadingTest\testSupportedElementTypes(), TokenReplaceTest\testTaxonomyTokenReplacement(), DateTimeTest\testTimeZoneHandling(), TokenReplaceWebTest\testTokens(), TrackerTest\testTrackerAdminUnpublish(), TrackerTest\testTrackerAll(), TrackerTest\testTrackerCronIndexing(), TrackerTest\testTrackerHistoryMetadata(), TrackerNodeAccessTest\testTrackerNodeAccess(), TrackerTest\testTrackerOrderingNewComments(), TrackerTest\testTrackerUser(), NodeTranslationUITest\testTranslationLinkTheme(), CommentPagerTest\testTwoPagers(), MenuTest\testUnpublishedNodeMenuItem(), UnsavedPreviewTest\testUnsavedPageDisplayPreview(), UpcastingTest\testUpcasting(), LinkFieldTest\testURLValidation(), UserCancelTest\testUserAnonymize(), UserCancelTest\testUserBlockUnpublish(), UserCancelTest\testUserCancelInvalid(), UserCancelTest\testUserCancelWithoutPermission(), UserCancelTest\testUserDelete(), UserTimeZoneTest\testUserTimeZone(), NodeViewLanguageTest\testViewLanguage(), ManageDisplayTest\testViewModeCustom(), OverrideDisplaysTest\testWizardMixedDefaultOverriddenDisplays(), and FileFieldTestBase\uploadNodeFiles().

Here is the call graph for this function:

drupalGet (   $path,
array  $options = array(),
array  $headers = array() 
)
protected

Retrieves a Drupal path or an absolute path.

Parameters
\Drupal\Core\Url | string$pathDrupal path or URL to load into internal browser
$optionsOptions to be forwarded to the url generator.
$headersAn array containing additional HTTP request headers, each formatted as "name: value".
Returns
string The retrieved HTML string, also available as $this->getRawContent()

References WebTestBase\buildUrl(), WebTestBase\checkForMetaRefresh(), WebTestBase\curlExec(), Html\escape(), WebTestBase\refreshVariables(), and TestBase\verbose().

Referenced by ColorTest\_testColor(), StringFieldTest\_testTextfieldWidgets(), FilterDateTest\_testUiValidation(), MenuTest\addCustomMenu(), MenuTest\addCustomMenuCRUD(), EditorAdminTest\addEditorToNewFormat(), ManageFieldsTest\addExistingField(), MenuTest\addMenuLink(), ManageFieldsTest\addPersistentFieldStorage(), EntityReferenceFieldTranslatedReferenceViewTest\assertEntityReferenceDisplay(), HtaccessTest\assertFileAccess(), SearchMultilingualEntityTest\assertIndexCounts(), NodeLanguageTest\assertLanguageNames(), NodeFieldFilterTest\assertPageCounts(), BlockContentFieldFilterTest\assertPageCounts(), CommentFieldFilterTest\assertPageCounts(), TaxonomyFieldFilterTest\assertPageCounts(), DisplayPageWebTest\assertPagePath(), NumberFieldTest\assertSetMinimumValue(), NodeAccessBaseTableTest\assertTaxonomyPage(), ToolbarCacheContextsTest\assertToolbarCacheContexts(), ManageFieldsTest\cardinalitySettings(), ContactPersonalTest\checkContactAccess(), WebTestBase\checkForMetaRefresh(), MenuTest\checkInvalidParentMenuLinks(), DisplayTest\checkTranslationSetting(), WebTestBase\clickLinkHelper(), CommentPagerTest\clickLinkWithXPath(), ForumTest\createForumTopic(), WebTestBase\cronRun(), ContactSitewideTest\deleteContactForms(), MenuTest\deleteCustomMenu(), ManageFieldsTest\deleteField(), ForumTest\deleteForum(), MenuTest\deleteMenuLink(), BlockXssTest\doBlockContentTest(), ConfigTranslationListUiTest\doBlockListTest(), ConfigTranslationListUiTest\doContactFormsListTest(), ConfigTranslationListUiTest\doContentTypeListTest(), ConfigTranslationListUiTest\doCustomContentTypeListTest(), ConfigTranslationListUiTest\doDateFormatListTest(), ConfigTranslationListUiTest\doFieldListTest(), FilterFormTest\doFilterFormTestAsAdmin(), FilterFormTest\doFilterFormTestAsNonAdmin(), ConfigTranslationListUiTest\doFormatsListTest(), ConfigTranslationListUiTest\doImageStyleListTest(), ImageStylesPathAndUrlTest\doImageStyleUrlAndPathTests(), ConfigTranslationListUiTest\doLanguageListTest(), MenuTest\doMenuLinkFormDefaultsTest(), ConfigTranslationListUiTest\doMenuListTest(), BlockXssTest\doMenuTest(), MenuTest\doMenuTests(), DownloadTest\doPrivateFileTransferTest(), ConfigTranslationListUiTest\doResponsiveImageListTest(), ConfigTranslationListUiTest\doSettingsPageTest(), ConfigTranslationListUiTest\doShortcutListTest(), NodeTranslationUITest\doTestAlternateHreflangLinks(), ContentTranslationUITestBase\doTestBasicTranslation(), MenuRouterTest\doTestDescriptionMenuItems(), MenuRouterTest\doTestExoticPath(), EntityFormTest\doTestFormCRUD(), FrontPageTest\doTestFrontPageViewCacheTags(), MenuRouterTest\doTestHookMenuIntegration(), LanguageSwitchingTest\doTestLanguageBlockAnonymous(), LanguageSwitchingTest\doTestLanguageBlockAuthenticated(), LanguageSwitchingTest\doTestLanguageLinkActiveClassAnonymous(), LanguageSwitchingTest\doTestLanguageLinkActiveClassAuthenticated(), MenuTest\doTestMenuBlock(), MenuRouterTest\doTestMenuOnRoute(), MenuRouterTest\doTestMenuOptionalPlaceholders(), EntityFormTest\doTestMultilingualFormCRUD(), ContentTranslationUITestBase\doTestOutdatedStatus(), ContentTranslationUITestBase\doTestPublishedStatus(), MenuRouterTest\doTestThemeCallbackAdministrative(), MenuRouterTest\doTestThemeCallbackFakeTheme(), MenuRouterTest\doTestThemeCallbackMaintenanceMode(), MenuRouterTest\doTestThemeCallbackNoThemeRequested(), MenuRouterTest\doTestThemeCallbackOptionalTheme(), MenuRouterTest\doTestTitleCallbackFalse(), MenuRouterTest\doTestTitleMenuCallback(), ContentTranslationUITestBase\doTestTranslationDeletion(), UserTranslationUITest\doTestTranslationEdit(), ShortcutTranslationUITest\doTestTranslationEdit(), MenuLinkContentTranslationUITest\doTestTranslationEdit(), TermTranslationUITest\doTestTranslationEdit(), BlockContentTranslationUITest\doTestTranslationEdit(), CommentTranslationUITest\doTestTranslationEdit(), NodeTranslationUITest\doTestTranslationEdit(), ContentTranslationUITestBase\doTestTranslationOverview(), NodeTranslationUITest\doTestTranslations(), ContentTranslationWorkflowsTest\doTestWorkflows(), ConfigTranslationListUiTest\doUserRoleListTest(), BlockXssTest\doViewTest(), ConfigTranslationListUiTest\doVocabularyListTest(), SystemAuthorizeTest\drupalGetAuthorizePHP(), WebTestBase\drupalGetWithFormat(), WebTestBase\drupalGetXHR(), WebTestBase\drupalLogout(), WebTestBase\drupalPostAjaxForm(), WebTestBase\drupalPostForm(), ManageFieldsTest\fieldListAdminPage(), StandardProfileTest\getRdfGraph(), CommentNonNodeTest\getUnapprovedComment(), CommentTestBase\getUnapprovedComment(), RESTTestBase\httpRequest(), SessionHttpsTest\loginHttp(), SessionHttpsTest\loginHttps(), ManageFieldsTest\manageFieldsPage(), MenuTest\modifyMenuLink(), BlockTest\moveBlockToRegion(), ImportOpmlTest\openImportForm(), CommentTestBase\postComment(), CommentNonNodeTest\postComment(), UpdateTestBase\refreshUpdateStatus(), EntityRevisionsTest\runRevisionsTests(), SessionTest\sessionReset(), CommentInterfaceTest\setUp(), BulkFormTest\setUp(), InstallerTestBase\setUp(), InstallerLanguagePageTest\setUpLanguage(), SearchTestBase\submitGetForm(), StyleTableTest\testAccessibilitySettings(), ShortcutLinksTest\testAccessShortcutsPermission(), ContentTranslationSettingsTest\testAccountLanguageSettingsUI(), UserAccountLinksTest\testAccountPageTitles(), ConfigTranslationUiTest\testAccountSettingsConfigurationTranslation(), ConfigurationTest\testActionConfiguration(), ActionUninstallTest\testActionUninstall(), PagerTest\testActiveClass(), ForumBlockTest\testActiveForumTopicsBlock(), UserAdminLanguageTest\testActualNegotiation(), EditorAdminTest\testAddEditorToExistingFormat(), AddFeedTest\testAddFeed(), AddFeedTest\testAddLongFeed(), SearchCommentTest\testAddNewComment(), PathAliasTest\testAdminAlias(), BookTest\testAdminBookListing(), BookTest\testAdminBookNodeListing(), FrontPageTest\testAdminFrontPage(), ThemeTest\testAdministrationTheme(), UserPermissionsTest\testAdministratorRole(), AdminTest\testAdminPages(), BlockAdminThemeTest\testAdminTheme(), HandlerFilterUserNameTest\testAdminUserInterface(), ElementsTableSelectTest\testAdvancedSelect(), ElementValidationTest\testAjaxElementValidation(), ViewAjaxTest\testAjaxView(), PathLanguageTest\testAliasTranslation(), ConfigTranslationUiTest\testAlterInfo(), AnalyzeTest\testAnalyzeBasic(), CommentAnonymousTest\testAnonymous(), CommentAdminTest\testApprovalAdminInterface(), CommentAdminTest\testApprovalNodeInterface(), DefaultViewsTest\testArchiveView(), DisplayPageWebTest\testArguments(), RolesRidArgumentTest\testArgumentTitle(), FeedParserTest\testAtomSample(), StatisticsAttachedTest\testAttached(), DisplayAttachmentTest\testAttachment(), HtmlResponseAttachmentsTest\testAttachments(), TriggeringElementTest\testAttemptAccessControlBypass(), NodeCreationTest\testAuthorAutocomplete(), MenuRouterTest\testAuthUserUserLogin(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), EntityReferenceAutoCreateTest\testAutoCreate(), CommentInterfaceTest\testAutoFilledHtmlSubject(), CommentInterfaceTest\testAutoFilledSubject(), CronRunTest\testAutomatedCron(), EntityReferenceAdminTest\testAvailableFormatters(), ToolbarAdminMenuTest\testBackToSiteLink(), BasicAuthTest\testBasicAuth(), ProcessingTest\testBatchFormMultistep(), ProcessingTest\testBatchFormProgrammatic(), ProcessingTest\testBatchLargePercentage(), ProcessingTest\testBatchNoForm(), PageTest\testBatchProgressMessages(), PageTest\testBatchProgressPageTheme(), PageTest\testBatchProgressPageTitle(), ProcessingTest\testBatchRedirectFinishedCallback(), BlockTest\testBlock(), BlockTest\testBlockAccess(), BlockUiTest\testBlockAdminUiPage(), BlockTest\testBlockCacheTags(), DisplayBlockTest\testBlockCategory(), BlockContentCreationTest\testBlockContentCreationMultipleViewModes(), BlockContentTypeTest\testBlockContentTypeCreation(), BlockContentTypeTest\testBlockContentTypeDeletion(), BlockContentTypeTest\testBlockContentTypeEditing(), BlockContentIntegrationTest\testBlockContentViewTypeArgument(), DisplayBlockTest\testBlockContextualLinks(), MenuTest\testBlockContextualLinks(), BlockContentCreationTest\testBlockDelete(), BlockUiTest\testBlockDemoUiPage(), AjaxFormCacheTest\testBlockForms(), AggregatorRenderingTest\testBlockLinks(), BlockLanguageCacheTest\testBlockLinks(), BlockHiddenRegionTest\testBlockNotInHiddenRegion(), DisplayBlockTest\testBlockRendering(), BlockRenderOrderTest\testBlockRenderOrder(), BlockTest\testBlockThemeSelector(), BlockTest\testBlockVisibility(), BlockTest\testBlockVisibilityListedEmpty(), BlockXssTest\testBlockXss(), ContentNegotiationTest\testBogusAcceptHeader(), BookTest\testBook(), CommentBookTest\testBookCommentPrint(), BookTest\testBookDelete(), BookTest\testBookExport(), BookTest\testBookListing(), BookTest\testBookNavigationBlock(), BookTest\testBookNavigationCacheContext(), BookTest\testBookOrdering(), BookTest\testBookOutline(), BooleanFieldTest\testBooleanField(), BooleanFormatterSettingsTest\testBooleanFormatterSettings(), BulkFormTest\testBulkForm(), ElementTest\testButtonClasses(), PageCacheTest\testCacheableResponseResponses(), StorageTest\testCachedFormStorageValidation(), BlockCacheTest\testCachePermissions(), BlockFormInBlockTest\testCachePerPage(), BlockCacheTest\testCachePerPage(), BlockCacheTest\testCachePerRole(), BlockCacheTest\testCachePerUser(), EntityListBuilderTest\testCacheTags(), BlockUiTest\testCandidateBlockList(), UserChangedTest\testChangedField(), OptionsWidgetsTest\testCheckBoxes(), ClassLoaderTest\testClassLoading(), ClassLoaderTest\testClassLoadingDisabledModules(), FieldWebTest\testClickSorting(), ColorSafePreviewTest\testColorPreview(), CommentAdminTest\testCommentAdmin(), CommentFieldsTest\testCommentFieldDelete(), CommentFieldsTest\testCommentFieldLinksNonDefaultName(), CommentInterfaceTest\testCommentInterface(), CommentLanguageTest\testCommentLanguage(), CommentLinksTest\testCommentLinks(), CommentLinksAlterTest\testCommentLinksAlter(), CommentPagerTest\testCommentNewPageIndicator(), CommentStatisticsTest\testCommentNodeCommentStatistics(), CommentOperationsTest\testCommentOperations(), CommentPagerTest\testCommentOrderingThreading(), NodeAccessPagerTest\testCommentPager(), CommentPagerTest\testCommentPaging(), CommentAttributesTest\testCommentRdfaMarkup(), CommentAttributesTest\testCommentRdfAuthorMarkup(), CommentAttributesTest\testCommentReplyOfRdfaMarkup(), CommentRowTest\testCommentRow(), CommentRssTest\testCommentRss(), CommentThreadingTest\testCommentThreading(), CommentTokenReplaceTest\testCommentTokenReplacement(), CommentTypeTest\testCommentTypeCreation(), CommentTypeTest\testCommentTypeDeletion(), CommentTypeTest\testCommentTypeEditing(), WizardTest\testCommentWizard(), AdminTest\testCompactMode(), PageCacheTest\testConditionalRequests(), ConditionFormTest\testConfigForm(), ImageAdminStylesTest\testConfigImport(), CacheabilityMetadataConfigOverrideIntegrationTest\testConfigOverride(), LanguageConfigOverrideImportTest\testConfigOverrideImport(), LanguageConfigOverrideImportTest\testConfigOverrideImportEvents(), SchemaConfigListenerWebTest\testConfigSchemaChecker(), LocaleConfigTranslationTest\testConfigTranslation(), LocaleConfigTranslationImportTest\testConfigTranslationImport(), LocaleConfigTranslationImportTest\testConfigTranslationModuleInstall(), AdminPathEntityConverterLanguageTest\testConfigUsingCurrentLanguage(), ConfirmFormTest\testConfirmFormWithExternalDestination(), ConfigTranslationUiTest\testContactConfigEntityTranslation(), ContactLanguageTest\testContactLanguage(), ContactLinkTest\testContactLink(), ContactAuthenticatedUserTest\testContactSiteWideTextfieldsLoggedInTestCase(), ContainerRebuildWebTest\testContainerInvalidation(), NodeAdminTest\testContentAdminPages(), NodeAdminTest\testContentAdminSort(), QuickEditLoadingTest\testContentBlock(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), LocaleContentTest\testContentTypeDirLang(), LocaleContentTest\testContentTypeLanguageConfiguration(), ContentTranslationEntityBundleUITest\testContentTypeUI(), BlockUiTest\testContextAwareBlocks(), BlockUiTest\testContextAwareUnsatisfiedBlocks(), RouterTest\testControllerPlaceholders(), RouterTest\testControllerPlaceholdersDefaultValues(), RouterTest\testControllerPlaceholdersDefaultValuesProvided(), RouterTest\testControllerResolutionPage(), CsrfTest\testCookieAuth(), UserPictureTest\testCreateDeletePicture(), UserRolesAssignmentTest\testCreateUserWithRole(), CronRunTest\testCronRun(), CronRunTest\testCronUI(), ConfigEntityStatusUITest\testCRUD(), ConfigEntityTest\testCRUDUI(), ThemeTest\testCSSOverride(), UpdatePathRC1TestBaseTest\testDatabaseLoaded(), UpdatePathTestBaseTest\testDatabaseLoaded(), SessionTest\testDataPersistence(), DateTimeFieldTest\testDateField(), DateTimeTest\testDateFormatConfiguration(), ConfigTranslationUiTest\testDateFormatTranslation(), ConfigTranslationDateFormatUiTest\testDateFormatUI(), DateFormatsLockedTest\testDateLocking(), LanguageNegotiationContentEntityTest\testDefaultConfiguration(), ImageFieldDefaultImagesTest\testDefaultImages(), LanguageConfigurationElementTest\testDefaultLangcode(), PathLanguageUiTest\testDefaultLanguageUrl(), MenuLinkReorderTest\testDefaultMenuLinkReorder(), DefaultMobileMetaTagsTest\testDefaultMetaTagsExist(), SearchConfigSettingsFormTest\testDefaultSearchPageOrdering(), ElementsVerticalTabsTest\testDefaultTab(), ManageFieldsTest\testDefaultValue(), DisplayBlockTest\testDeleteBlockDisplay(), DeleteFeedTest\testDeleteFeed(), FieldUIDeleteTest\testDeleteField(), StatisticsAdminTest\testDeleteNode(), DestinationTest\testDestination(), DialogTest\testDialog(), ContextualDynamicContextTest\testDifferentPermissions(), UserAccountLinksTest\testDisabledAccountLink(), DisplayAttachmentTest\testDisabledAttachments(), NodeTranslationUITest\testDisabledBundle(), DisabledDisplayTest\testDisabledDisplays(), FormTest\testDisabledElements(), DisplayFeedTest\testDisabledFeed(), FilterAdminTest\testDisabledFormat(), FormTest\testDisabledMarkup(), FilterSecurityTest\testDisableFilterModule(), EditorAdminTest\testDisableFormatWithEditor(), RequiredTest\testDisableRequired(), NodeRevisionsUiBypassAccessTest\testDisplayRevisionTab(), FieldDropButtonTest\testDropbutton(), ProcessingTest\testDrupalFormSubmitInBatch(), FrontPageTest\testDrupalFrontPage(), SaveUploadTest\testDrupalMovingUploadedFileError(), DrupalSetMessageTest\testDrupalSetMessage(), UserHelpersTest\testDrupalUserIsLoggedIn(), DynamicPageCacheIntegrationTest\testDynamicPageCache(), RouterTest\testDynamicRoutes(), EarlyRenderingControllerTest\testEarlyRendering(), CommentAdminTest\testEditComment(), ImageAdminStylesTest\testEditEffect(), EditorSecurityTest\testEditorXssFilterOverride(), EmailFieldTest\testEmailField(), SearchEmbedFormTest\testEmbeddedForm(), SessionTest\testEmptyAnonymousSession(), StyleTableTest\testEmptyColumn(), EntityTypeWithoutLanguageFormTest\testEmptyLangcode(), FormTest\testEmptySelect(), SessionTest\testEmptySessionID(), ElementsTableSelectTest\testEmptyText(), OptionsWidgetsTest\testEmptyValue(), ContentTranslationEnableTest\testEnable(), LanguageNegotiationContentEntityTest\testEnabledLanguageContentNegotiator(), ConfigImportUITest\testEntityBundleDelete(), EntityFormTest\testEntityFormDisplayAlter(), EntityTranslationFormTest\testEntityFormLanguage(), EntityDisplayModeTest\testEntityFormModeUI(), UpcastingTest\testEntityLanguage(), EntityOperationsTest\testEntityOperationAlter(), EntityReferenceFieldDefaultValueTest\testEntityReferenceDefaultValue(), EntityReferenceXSSTest\testEntityReferenceXSS(), EntityViewControllerTest\testEntityViewController(), EntityViewControllerTest\testEntityViewControllerViewBuilder(), EntityDisplayModeTest\testEntityViewModeUI(), SimpleTestErrorCollectorTest\testErrorCollect(), UncaughtExceptionTest\testErrorContainer(), ErrorHandlerTest\testErrorHandler(), SelectPagerDefaultTest\testEvenPagerQuery(), UncaughtExceptionTest\testExceptionContainer(), ErrorHandlerTest\testExceptionHandler(), AlterTest\testExecutionOrder(), ThemeSuggestionsAlterTest\testExecutionOrder(), CKEditorAdminTest\testExistingFormat(), StatisticsAdminTest\testExpiredLogs(), ConfigExportUITest\testExport(), ConfigSingleImportExportTest\testExport(), LocaleExportTest\testExportTranslationTemplateFile(), ExposedFormTest\testExposedBlock(), HandlerFilterUserNameTest\testExposedFilter(), ExposedFormTest\testExposedSortAndItemsPerPage(), ToolbarAdminMenuTest\testExternalLink(), UninstallTest\testFailedInstallStatus(), TrustedHostsTest\testFakeRequests(), DisplayFeedTest\testFeedFieldOutput(), AddFeedTest\testFeedLabelEscaping(), DisplayFeedTest\testFeedOutput(), AggregatorRenderingTest\testFeedPage(), FeedAdminDisplayTest\testFeedUpdateFields(), FieldAccessTest\testFieldAccess(), EntityReferenceAdminTest\testFieldAdminHandler(), ConfigTranslationUiTest\testFieldConfigTranslation(), FieldHelpTest\testFieldHelp(), StyleTableTest\testFieldInColumns(), EntityViewControllerTest\testFieldItemAttributes(), ManageFieldsTest\testFieldPrefix(), StyleSerializerTest\testFieldRawOutput(), ContentTranslationStandardFieldsTest\testFieldTranslatableArticle(), ContentTranslationSettingsTest\testFieldTranslatableSettingsUI(), LinkFieldUITest\testFieldUI(), FieldUIRouteTest\testFieldUIRoutes(), HtaccessTest\testFileAccess(), FileFieldFormatterAccessTest\testFileAccessHandler(), ConfigTest\testFileConfigurationPage(), LocaleFileSystemFormTest\testFileConfigurationPage(), FileFieldRSSContentTest\testFileFieldRSSContent(), FileListingTest\testFileListingPages(), UpdateUploadTest\testFileNameExtensionMerging(), DbLogTest\testFilter(), FilterAdminTest\testFilterAdmin(), FilterUITest\testFilterInOperatorUi(), FilterUITest\testFiltersUI(), FilterAdminTest\testFilterTipHtmlEscape(), RouterTest\testFinishResponseSubscriber(), ImageAdminStylesTest\testFlushUserInterface(), StorageTest\testForm(), FilterAdminTest\testFormatAdmin(), FilterFormatAccessTest\testFormatPermissions(), ManageDisplayTest\testFormatterUI(), FilterFormatAccessTest\testFormatWidgetPermissions(), ElementTest\testFormAutocomplete(), StorageTest\testFormCached(), ElementsLabelsTest\testFormDescriptions(), PageCacheTest\testFormImmutability(), ElementsLabelsTest\testFormLabels(), ConfigFormOverrideTest\testFormsWithOverrides(), ConfigEntityFormOverrideTest\testFormsWithOverrides(), LanguageNegotiationFormOverrideTest\testFormWithOverride(), ViewsFormTest\testFormWrapper(), ForumTest\testForum(), ForumIndexTest\testForumIndexStatus(), ForumNodeAccessTest\testForumNodeAccess(), NodeAccessPagerTest\testForumPager(), ForumUninstallTest\testForumUninstallWithField(), ForumTest\testForumWithNewPost(), ThemeTest\testFunctionOverride(), ThemeSuggestionsAlterTest\testGeneralSuggestionsAlter(), ResponseGeneratorTest\testGeneratorHeaderAdded(), BrowserTest\testGetAbsoluteUrl(), FormTest\testGetFormsCsrfToken(), GetNamespacesTest\testGetRdfNamespaces(), GlossaryTest\testGlossaryView(), StyleGridTest\testGrid(), ElementTest\testGroupElements(), FieldGroupRowsWebTest\testGroupRows(), FilterPermissionUiTest\testHandlerUI(), FieldUITest\testHandlerUI(), FieldUITest\testHandlerUIAggregation(), HelpTest\testHelp(), ManageFieldsTest\testHelpDescriptions(), ConfigTranslationOverviewTest\testHiddenEntities(), ManageFieldsTest\testHiddenFields(), LanguageSelectElementTest\testHiddenLanguageSelectElement(), BlockTest\testHideBlockTitle(), NodeLinksTest\testHideLinks(), MenuLinkTest\testHierarchicalMenuLinkVisibility(), HistoryTest\testHistory(), ToolbarHookToolbarTest\testHookToolbar(), UpdateContribTest\testHookUpdateStatusAlter(), FileSaveHtaccessLoggingTest\testHtaccessSave(), BlockHtmlTest\testHtml(), AjaxPageStateTest\testHtml5ShivIsNotLoaded(), FeedParserTest\testHtmlEntitiesSample(), NodeViewTest\testHtmlHeadLinks(), AreaHTTPStatusCodeTest\testHTTPStatusCodeHandler(), CKEditorToolbarButtonTest\testImageButtonDisplay(), ContentTranslationSyncImageTest\testImageFieldSync(), ImageAdminStylesTest\testImageStyleAccess(), ImageStylesPathAndUrlTest\testImageStyleUrlForMissingSourceImage(), StorageTest\testImmutableForm(), StorageTest\testImmutableFormLegacyProtection(), OptionsFloatFieldImportTest\testImport(), ConfigImportUploadTest\testImport(), FieldImportDeleteUninstallUiTest\testImportDeleteUninstall(), ConfigImportUITest\testImportDiff(), ConfigImportUITest\testImportErrorLog(), ConfigImportUITest\testImportLock(), ConfigSingleImportExportTest\testImportSimpleConfiguration(), ConfigImportUITest\testImportSiteUuidValidation(), ConfigImportUITest\testImportValidation(), DependencyTest\testIncompatibleCoreVersionDependency(), DependencyTest\testIncompatibleModuleVersionDependency(), IndexPhpTest\testIndexPhpHandling(), LanguageNegotiationInfoTest\testInfoAlterations(), EditorSecurityTest\testInitialSecurity(), FormTest\testInputForgery(), ExposedFormTest\testInputRequired(), ThemeTest\testInstallAndSetAsDefault(), InstallationProfileModuleTestsTest\testInstallationProfileTests(), InstallerExistingInstallationTest\testInstaller(), LocaleUpdateInterfaceTest\testInterface(), SimpleTestBrowserTest\testInternalBrowser(), DisplayTest\testInvalidDisplayPlugins(), FeedParserTest\testInvalidFeed(), ThemeTest\testInvalidTheme(), IpAddressBlockingTest\testIPAddressValidation(), ItemsPerPageTest\testItemsPerPage(), ElementsVerticalTabsTest\testJavaScriptOrdering(), LanguageTourTest\testLanguageAddTour(), BlockLanguageTest\testLanguageBlockVisibility(), BlockLanguageTest\testLanguageBlockVisibilityLanguageDelete(), LanguageSwitchingTest\testLanguageBodyClass(), LanguageConfigurationTest\testLanguageConfiguration(), LanguageConfigurationElementTest\testLanguageConfigurationElement(), LanguageTourTest\testLanguageEditTour(), LocaleLocaleLookupTest\testLanguageFallbackDefaults(), NodeTypeInitialLanguageTest\testLanguageFieldVisibility(), LanguageListTest\testLanguageList(), UpdateCoreTest\testLanguageModuleUpdate(), PathLanguageUiTest\testLanguageNeutralUrl(), NodeLanguageTest\testLanguages(), LanguageSelectElementTest\testLanguageSelectElementOptions(), LanguageSwitchingTest\testLanguageSessionSwitchLinks(), LanguageSelectorTranslatableTest\testLanguageStringSelector(), ToolbarAdminMenuTest\testLanguageSwitching(), LanguageTourTest\testLanguageTour(), FrameworkTest\testLazyLoad(), RouterTest\testLeadingSlashes(), AjaxPageStateTest\testLibrariesAvailable(), LinkFieldTest\testLinkFormatter(), LinkFieldTest\testLinkSeparateFormatter(), LinkFieldTest\testLinkTitle(), BlockContentListViewsTest\testListing(), BlockContentListTest\testListing(), ConfigTranslationOverviewTest\testListingPageWithOverrides(), ConfigEntityListMultilingualTest\testListUI(), ConfigEntityListTest\testListUI(), CKEditorLoadingTest\testLoading(), EditorLoadingTest\testLoading(), LocalActionTest\testLocalAction(), UpdateCoreTest\testLocalActions(), LocaleJavascriptTranslationTest\testLocaleTranslationJsDependencies(), ToolbarAdminMenuTest\testLocaleTranslationSubtreesHashCacheClear(), LocalTasksTest\testLocalTaskBlock(), UserLanguageCreationTest\testLocalUserCreation(), LockFunctionalTest\testLockAcquire(), ManageFieldsTest\testLockedField(), UncaughtExceptionTest\testLoggerException(), StatisticsLoggingTest\testLogging(), UserLoginTest\testLoginCacheTagsAndDestination(), ColorTest\testLogoSettingOverride(), UncaughtExceptionTest\testLostDatabaseConnection(), LocaleContentTest\testMachineNameLTR(), BlockUiTest\testMachineNameSuggestion(), MainContentFallbackTest\testMainContentFallback(), NoHelpTest\testMainPageNoHelp(), MenuRouterTest\testMaintenanceModeLoginPaths(), UpdateCoreTest\testMajorUpdateAvailable(), FileManagedFileElementTest\testManagedFile(), FileManagedFileElementTest\testManagedFileRemoved(), CronRunTest\testManualCron(), ConfigTranslationOverviewTest\testMapperListPage(), MenuAccessTest\testMenuBlockLinksAccessCheck(), MenuLanguageTest\testMenuLanguage(), MenuLinkSecurityTest\testMenuLink(), MenuLinkContentDeleteFormTest\testMenuLinkContentDeleteForm(), MenuLinkContentFormTest\testMenuLinkContentForm(), MenuLinkContentFormTest\testMenuLinkContentFormValidation(), MenuTest\testMenuQueryAndFragment(), AdminMetaTagTest\testMetaTag(), DefaultMetatagsTest\testMetaTag(), MinimalTest\testMinimal(), MiniPagerTest\testMiniPagerRender(), UncaughtExceptionTest\testMissingDependency(), UncaughtExceptionTest\testMissingDependencyCustomErrorHandler(), DependencyTest\testMissingModules(), ModulesListFormWebTest\testModuleListForm(), UpdateCoreTest\testModulePageRegularUpdate(), UpdateCoreTest\testModulePageRunCron(), UpdateCoreTest\testModulePageSecurityUpdate(), UpdateCoreTest\testModulePageUpToDate(), VersionTest\testModuleVersions(), NodeViewTest\testMultiByteUtf8(), MultiFormTest\testMultiForm(), NodeFieldMultilingualTest\testMultilingualNodeForm(), SearchMultilingualTest\testMultilingualSearchFilter(), ElementsTableSelectTest\testMultipleFalse(), BlockLanguageTest\testMultipleLanguageTypes(), AjaxPageStateTest\testMultipleLibrariesAreNotLoaded(), SearchConfigSettingsFormTest\testMultipleSearchPages(), ElementsTableSelectTest\testMultipleTrue(), BookTest\testNavigationBlockOnAccessModuleInstalled(), ThemeTest\testNegotiatorPriorities(), NestedFormTest\testNestedFieldForm(), NodeCommentsTest\testNewComments(), CKEditorAdminTest\testNewFormat(), ForumBlockTest\testNewForumTopicsBlock(), BlockCacheTest\testNoCache(), NodeAccessFieldTest\testNodeAccessAdministerField(), NodeAccessBaseTableTest\testNodeAccessBasic(), NodeAccessAutoBubblingTest\testNodeAccessCacheabilitySafeguard(), NodeAccessMenuLinkTest\testNodeAccessMenuLink(), NodeAccessRebuildTest\testNodeAccessRebuild(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNoAccessModules(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNodeGrants(), NodeCreationTest\testNodeAddWithoutContentTypes(), PathAliasTest\testNodeAlias(), NodeAttributesTest\testNodeAttributes(), NodeContextualLinksTest\testNodeContextualLinks(), IntegrationTest\testNodeCounterIntegration(), FileFieldDisplayTest\testNodeDisplay(), OptionsFieldUITest\testNodeDisplay(), NodeEditFormTest\testNodeEdit(), PathNodeFormTest\testNodeForm(), NodeFormButtonsTest\testNodeFormButtons(), NodeRevisionsUiTest\testNodeFormSaveWithoutRevision(), NodeLoadMultipleTest\testNodeMultipleLoad(), NodeRevisionsUiTest\testNodeRevisionDoubleEscapeFix(), NodeRevisionsTest\testNodeRevisionWithoutLogMessage(), NodeRSSContentTest\testNodeRSSContent(), NodeHelpTest\testNodeShowHelpText(), TermTest\testNodeTermCreationAndDeletion(), NodeTitleTest\testNodeTitle(), NodeTitleXSSTest\testNodeTitleXSS(), SearchAdvancedSearchFormTest\testNodeType(), NodeTypeTest\testNodeTypeCreation(), NodeTypeTest\testNodeTypeDeletion(), NodeTypeTest\testNodeTypeFieldUiPermissions(), NodeTypeInitialLanguageTest\testNodeTypeInitialLanguageDefaults(), NodeTypeTranslationTest\testNodeTypeTitleLabelTranslation(), NodeTypeTranslationTest\testNodeTypeTranslation(), NodeEntityViewModeAlterTest\testNodeViewModeChange(), NodeIntegrationTest\testNodeViewTypeArgument(), EditorAdminTest\testNoEditorAvailable(), ManageDisplayTest\testNoFieldsDisplayOverview(), NoJavaScriptAnonymousTest\testNoJavaScript(), ToolbarAdminMenuTest\testNonCurrentUserAccountUpdates(), NonDefaultBlockAdminTest\testNonDefaultBlockAdmin(), PathLanguageUiTest\testNonDefaultUrl(), ManageFieldsTest\testNonExistentFieldUrls(), ManageDisplayTest\testNonInitializedFields(), ContentTranslationSettingsTest\testNonTranslatableTranslationSettingsUI(), UpdateContribTest\testNoReleasesAvailable(), PagerTest\testNormalPager(), UpdateCoreTest\testNormalUpdateAvailable(), ShortcutLinksTest\testNoShortcutLink(), UserAdminTest\testNotificationEmailAddress(), BlockXssTest\testNoUnexpectedEscaping(), UpdateScriptTest\testNoUpdateFunctionality(), NumberFieldTest\testNumberDecimalField(), NumberFieldTest\testNumberFloatField(), NumberFieldTest\testNumberFormatter(), NumberFieldTest\testNumberIntegerField(), CommentAttributesTest\testNumberOfCommentsRdfaMarkup(), StyleTableTest\testNumericFieldVisible(), NumericFormatPluralTest\testNumericFormatPlural(), FormObjectTest\testObjectFormCallback(), SelectPagerDefaultTest\testOddPagerQuery(), ContentTranslationOperationsTest\testOperationTranslateLink(), StyleOpmlTest\testOpmlOutput(), ElementTest\testOptions(), FrameworkTest\testOrder(), OtherInstallationProfileTestsTest\testOtherInstallationProfile(), ColorTest\testOverrideAndResetScheme(), DbLogTest\testOverviewLinks(), AggregatorAdminTest\testOverviewPage(), PageCacheTest\testPageCache(), PageCacheTest\testPageCacheAnonymous403404(), PageCacheTest\testPageCacheAnonymousRolePermissions(), PageCacheTest\testPageCacheTags(), PageCacheTest\testPageCacheTagsIndependentFromCacheabilityHeaders(), PageCacheTest\testPageCacheWithoutVaryCookie(), DisplayPageWebTest\testPageDisplayMenu(), DisplayVariantTest\testPageDisplayVariantSelectionEvent(), BlockContentPageViewTest\testPageEdit(), PageEditTest\testPageEdit(), LanguagePathMonolingualTest\testPageLinks(), PagePreviewTest\testPagePreview(), EntityListBuilderTest\testPager(), ConfigEntityListTest\testPager(), PagerTest\testPagerConfigTranslation(), PagerTest\testPagerEllipsis(), PagerTest\testPagerLocale(), PagerTest\testPagerQueryParametersAndCacheContext(), PageViewTest\testPageView(), NodeContextualLinksTest\testPageWithDisabledContextualModule(), PathAliasTest\testPathCache(), LocalePathTest\testPathLanguageConfiguration(), RouterPermissionTest\testPermissionAccess(), LockFunctionalTest\testPersistentLock(), ContactPersonalTest\testPersonalContactAccess(), UserPictureTest\testPictureOnNodeComment(), BlockFormInBlockTest\testPlaceholders(), ElementTest\testPlaceHolderText(), LocalTasksTest\testPluginLocalTask(), ConfigTranslationUiTest\testPluralConfigStrings(), ConfigTranslationUiTest\testPluralConfigStringsSourceElements(), LocalePluralFormatTest\testPluralEditDateFormatter(), LocalePluralFormatTest\testPluralEditExport(), StatisticsReportsTest\testPopularContentBlock(), UpdatePostUpdateTest\testPostUpdate(), ManageFieldsTest\testPreconfiguredFields(), ConfigInstallWebTest\testPreExistingConfigInstall(), ThemeTest\testPreprocessForSuggestions(), ThemeTest\testPreprocessHtml(), RebuildTest\testPreserveFormActionAfterAJAX(), BaseFieldAccessTest\testProtectedField(), NodeTranslationUITest\testPublishedStatusNoFields(), AjaxFormCacheTest\testQueryString(), OptionsWidgetsTest\testRadioButtons(), FormStoragePageCacheTest\testRebuildFormStorageOnCachedPage(), CommentBlockTest\testRecentCommentBlock(), NodeBlockFunctionalTest\testRecentNodeBlock(), RedirectTest\testRedirectFromErrorPages(), reEnableModuleFieldTest\testReEnabledField(), ThemeTest\testRegionClass(), UserRegistrationTest\testRegistrationWithUserFields(), HandlerTest\testRelationshipUI(), DefaultMobileMetaTagsTest\testRemovingDefaultMetaTags(), EngineTwigTest\testRenderable(), AreaTest\testRenderAreaToken(), HtmlResponseAttachmentsTest\testRenderCachedBlock(), ReportTest\testReport(), ThemeEarlyInitializationTest\testRequestListener(), FormTest\testRequiredAttribute(), UpdateScriptTest\testRequirements(), ExposedFormTest\testResetButton(), UserPasswordResetTest\testResetImpersonation(), StyleSerializerTest\testResponseFormatConfiguration(), ResponsiveImageAdminUITest\testResponsiveImageAdmin(), ResponsiveImageFieldUiTest\testResponsiveImageFormatterUI(), ContentTranslationStandardFieldsTest\testRevisionLogNotTranslatable(), BlockContentRevisionsTest\testRevisions(), NodeRevisionsAllTest\testRevisions(), NodeRevisionsTest\testRevisions(), UserRoleAdminTest\testRoleAdministration(), RouterTest\testRouterMatching(), RouterTest\testRouterResponsePsr7(), PageTitleTest\testRoutingTitle(), FeedParserTest\testRSS091Sample(), RowRssTest\testRssRow(), UpcastingTest\testSameTypes(), BlockContentTypeTest\testsBlockContentAddTypes(), SearchCommentCountToggleTest\testSearchCommentCountToggle(), SearchKeywordsConditionsTest\testSearchKeywordsConditions(), SearchPageTextTest\testSearchLabelXSS(), SearchConfigSettingsFormTest\testSearchModuleSettingsPage(), SearchCommentTest\testSearchResultsCommentAccess(), SearchConfigSettingsFormTest\testSearchSettingsPage(), SearchPageCacheTagsTest\testSearchTagsBubbling(), SearchPageCacheTagsTest\testSearchText(), SearchPageTextTest\testSearchText(), UserAccountLinksTest\testSecondaryMenu(), FormTest\testSelect(), OptionsSelectDynamicValuesTest\testSelectListDynamic(), OptionsWidgetsTest\testSelectListMultiple(), OptionsWidgetsTest\testSelectListSingle(), ContactPersonalTest\testSendPersonalContactMessage(), StyleSerializerTest\testSerializerViewsUI(), ServiceProviderWebTest\testServiceProviderRegistrationIntegration(), SessionAuthenticationTest\testSessionFromBasicAuthenticationDoesNotLeak(), SessionTest\testSessionPersistenceOnLogin(), SessionTest\testSessionSaveRegenerate(), SessionTest\testSessionWrite(), ContainerRebuildWebTest\testSetContainerRebuildWithDifferentDeploymentIdentifier(), SyslogTest\testSettings(), AggregatorAdminTest\testSettingsPage(), ContentTranslationSettingsTest\testSettingsUI(), BlockAdminThemeTest\testSevenAdminTheme(), ShortcutLinksTest\testShortcutBlockAccess(), ShortcutLinksTest\testShortcutLinkDelete(), ShortcutLinksTest\testShortcutLinkOrder(), ShortcutLinksTest\testShortcutQuickLink(), ShortcutSetsTest\testShortcutSetAdd(), ShortcutSetsTest\testShortcutSetCreateWithSetName(), ShortcutSetsTest\testShortcutSetDeleteDefault(), ShortcutSetsTest\testShortcutSetEdit(), ShortcutSetsTest\testShortcutSetRename(), ShutdownFunctionsTest\testShutdownFunctions(), AjaxFormPageCacheTest\testSimpleAJAXFormValue(), PagePreviewTest\testSimultaneousPreview(), ConfigTranslationUiTest\testSingleLanguageUI(), FileFieldWidgetTest\testSingleValuedWidget(), ManageDisplayTest\testSingleViewMode(), ConfigTranslationUiTest\testSiteInformationTranslationUi(), SiteMaintenanceTest\testSiteMaintenance(), SiteNameTest\testSiteName(), ConfigLanguageOverrideWebTest\testSiteNameTranslation(), ContactSitewideTest\testSiteWideContact(), CommentNonNodeTest\testsNonIntegerIdEntities(), SortingTest\testSorting(), ConfigTranslationUiTest\testSourceAndTargetLanguage(), ConfigTranslationUiTest\testSourceValueDuplicateSave(), ThemeSuggestionsAlterTest\testSpecificSuggestionsAlter(), AccessTest\testStaticAccessPlugin(), StatisticsAdminTest\testStatisticsSettings(), StatisticsTokenReplaceTest\testStatisticsTokenReplacement(), StatusExtraTest\testStatusExtra(), TrustedHostsTest\testStatusPageWithConfiguration(), TrustedHostsTest\testStatusPageWithoutConfiguration(), UpdateApiEntityDefinitionUpdateTest\testStatusReport(), PagerTest\testStorePagerSettings(), LocaleTranslationUiTest\testStringTranslation(), ImageAdminStylesTest\testStyle(), ImageAdminStylesTest\testStyleReplacement(), ThemeInfoTest\testStylesheets(), ExposedFormTest\testSubmitButton(), UpdateScriptTest\testSuccessfulUpdateFunctionality(), ThemeTest\testSuggestionPreprocessForDefaults(), ThemeSuggestionsAlterTest\testSuggestionsAlterInclude(), StyleSummaryTest\testSummaryView(), EditorLoadingTest\testSupportedElementTypes(), EntityReferenceIntegrationTest\testSupportedEntityTypesAndWidgets(), HtaccessTest\testSvgzContentEncoding(), EditorSecurityTest\testSwitchingSecurity(), NodeSyndicateBlockTest\testSyndicateBlock(), BlockSystemBrandingTest\testSystemBrandingSettings(), SystemConfigFormTest\testSystemConfigForm(), DrupalDateTimeTest\testSystemTimezone(), ElementsTableSelectTest\testTableselectColSpan(), SelectTableSortDefaultTest\testTableSortDefaultSort(), SelectTableSortDefaultTest\testTableSortQuery(), SelectTableSortDefaultTest\testTableSortQueryFirst(), TaggedWithTest\testTaggedWith(), TaggedWithTest\testTaggedWithByNodeType(), VocabularyUiTest\testTaxonomyAdminDeletingVocabulary(), VocabularyUiTest\testTaxonomyAdminNoVocabularies(), TermTest\testTaxonomyNode(), RssTest\testTaxonomyRss(), TermTest\testTaxonomyTermChildTerms(), TaxonomyTermPagerTest\testTaxonomyTermOverviewPager(), TaxonomyAttributesTest\testTaxonomyTermRdfaAttributes(), ThemeTest\testTaxonomyTermThemes(), TelephoneFieldTest\testTelephoneField(), EngineNyanCatTest\testTemplateOverride(), ThemeTest\testTemplateOverride(), ThemeSuggestionsAlterTest\testTemplateSuggestions(), ThemeSuggestionsAlterTest\testTemplateSuggestionsAlter(), TemporaryQueryTest\testTemporaryQuery(), DbLogTest\testTemporaryUser(), PathTaxonomyTermTest\testTermAlias(), TermTest\testTermBreadcrumbs(), TermTest\testTermInterface(), TermTest\testTermReorder(), TaxonomyDefaultArgumentTest\testTermTitleEscaping(), TaxonomyTermArgumentDepthTest\testTermWithDepthArgumentTitleEscaping(), SimpleTestBrowserTest\testTestingThroughUI(), ExposedFormTest\testTextInputRequired(), BlockTest\testThemeAdminLink(), EntityFilteringThemeTest\testThemedEntity(), ConfigTranslationUiThemeTest\testThemeDiscovery(), ViewsThemeIntegrationTest\testThemedViewPage(), ThemeSuggestionsAlterTest\testThemeFunctionSuggestionsAlter(), HtmlAttributesTest\testThemeHtmlAttributes(), BlockTest\testThemeName(), ThemeTest\testThemeOnNonHtmlRequest(), ThemeTest\testThemeSettings(), ThemeTest\testThemeSettingsLogo(), UpdateScriptTest\testThemeSystem(), ThemeTokenTest\testThemeToken(), CommentNodeAccessTest\testThreadedCommentView(), DateTimeTest\testTimeZoneHandling(), TourTestBasic\testTips(), AreaTest\testTitleArea(), QuickEditLoadingTest\testTitleBaseField(), DisplayPageWebTest\testTitleOutput(), PageTitleTest\testTitleTags(), PageTitleTest\testTitleXSS(), TokenReplaceWebTest\testTokens(), ToolbarMenuTranslationTest\testToolbarClasses(), ToolkitSetupFormTest\testToolkitSetupForm(), TourTest\testTourFunctionality(), TrackerTest\testTrackerAdminUnpublish(), TrackerTest\testTrackerAll(), TrackerTest\testTrackerCronIndexing(), TrackerTest\testTrackerHistoryMetadata(), TrackerNodeAccessTest\testTrackerNodeAccess(), TrackerTest\testTrackerOrderingNewComments(), TrackerTest\testTrackerUser(), TermTranslationFieldViewTest\testTranslatedTaxonomyTermReferenceDisplay(), CommentTranslationUITest\testTranslateLinkCommentAdminPage(), TermTranslationUITest\testTranslateLinkVocabularyAdminPage(), LocaleTranslateStringTourTest\testTranslateStringTourTips(), TranslationLinkTest\testTranslationLink(), MenuLinkContentTranslationUITest\testTranslationLinkOnMenuEditForm(), MenuLinkContentTranslationUITest\testTranslationLinkTheme(), NodeTranslationUITest\testTranslationLinkTheme(), NodeTranslationUITest\testTranslationRendering(), FieldEntityTranslationTest\testTranslationRows(), EngineTwigTest\testTwigAttachLibrary(), TwigSettingsTest\testTwigCacheOverride(), TwigExtensionTest\testTwigExtensionFilter(), TwigExtensionTest\testTwigExtensionFunction(), EngineTwigTest\testTwigFileUrls(), TwigSettingsTest\testTwigInlineWithAutoReload(), TwigRegistryLoaderTest\testTwigNamespaces(), TwigTransTest\testTwigTransTags(), EngineTwigTest\testTwigUrlGenerator(), EngineTwigTest\testTwigUrlToString(), EngineTwigTest\testTwigVariableDataTypes(), CommentPagerTest\testTwoPagers(), AreaTest\testUI(), LanguageBrowserDetectionTest\testUIBrowserLanguageMappings(), ContentTranslationUISkipTest\testUICheckSkip(), StyleSerializerTest\testUIFieldAlias(), LanguageUILanguageNegotiationTest\testUILanguageNegotiation(), BasicAuthTest\testUnauthorizedErrorMessage(), UncaughtExceptionTest\testUncaughtException(), UncaughtExceptionTest\testUncaughtExceptionCustomExceptionHandler(), FieldGroupRowsWebTest\testUngroupedRows(), DependencyTest\testUninstallDependents(), ThemeTest\testUninstallingThemes(), UninstallTest\testUninstallPage(), MenuTest\testUnpublishedNodeMenuItem(), UnsavedPreviewTest\testUnsavedPageDisplayPreview(), UpcastingTest\testUpcasting(), UpdateScriptTest\testUpdateAccess(), LocaleUpdateTest\testUpdateCheckStatus(), LocaleUpdateCronTest\testUpdateCron(), UpdatePathTestBaseFilledTest\testUpdatedSite(), UpdatePathRC1TestBaseFilledTest\testUpdatedSite(), UpdateFeedItemTest\testUpdateFeedItem(), BlockContextMappingUpdateTest\testUpdateHookN(), UpdateSchemaTest\testUpdateHooks(), LocaleUpdateTest\testUpdateImportModeNonCustomized(), LocaleUpdateTest\testUpdateImportModeNone(), LocaleUpdateTest\testUpdateImportSourceLocal(), LocaleUpdateTest\testUpdateImportSourceRemote(), UpdateUploadTest\testUpdateManagerCoreSecurityUpdateMessages(), UrlAlterFunctionalTest\testUrlAlter(), UrlBubbleableMetadataBubblingTest\testUrlBubbleableMetadataBubbling(), LanguageUILanguageNegotiationTest\testUrlLanguageFallback(), LanguageUrlRewritingTest\testUrlRewritingEdgeCases(), LinkFieldTest\testURLValidation(), RouterTest\testUserAccount(), UserCreateTest\testUserAdd(), UserAdminTest\testUserAdmin(), UserAdminLanguageTest\testUserAdminLanguageConfigurationAvailableIfAdminLanguageNegotiationIsEnabled(), UserAdminLanguageTest\testUserAdminLanguageConfigurationAvailableWithAdminLanguageNegotiation(), UserAdminLanguageTest\testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage(), SimpleTestBrowserTest\testUserAgentValidation(), UserCancelTest\testUserAnonymize(), FastTest\testUserAutocomplete(), UserCancelTest\testUserBlock(), UserCancelTest\testUserBlockUnpublish(), UserCancelTest\testUserCancelByAdmin(), UserCancelTest\testUserCancelInvalid(), UserCancelTest\testUserCancelWithoutPermission(), UserCancelTest\testUserDelete(), BulkFormAccessTest\testUserDeleteAccess(), UserEditTest\testUserEdit(), BulkFormAccessTest\testUserEditAccess(), UserLanguageTest\testUserLanguageConfiguration(), UserAdminListingTest\testUserListing(), UserBlocksTest\testUserLoginBlockVisibility(), UserPasswordResetTest\testUserPasswordReset(), UserPasswordResetTest\testUserPasswordResetLoggedIn(), UserPermissionsTest\testUserPermissionChanges(), UserPasswordResetTest\testUserResetPasswordTextboxFilled(), ToolbarAdminMenuTest\testUserRoleUpdateSubtreesHashCacheClear(), QuickEditIntegrationLoadingTest\testUsersWithoutPermission(), UserTimeZoneTest\testUserTimeZone(), UserCancelTest\testUserWithoutEmailCancelByAdmin(), QuickEditLoadingTest\testUserWithoutPermission(), QuickEditIntegrationLoadingTest\testUserWithPermission(), QuickEditLoadingTest\testUserWithPermission(), ValidationTest\testValidate(), FormStoragePageCacheTest\testValidateFormStorageOnCachedPage(), ValidationTest\testValidateLimitErrors(), NodeViewLanguageTest\testViewLanguage(), ManageDisplayTest\testViewModeLocalTasks(), ViewNonTranslatableEntityTest\testViewNoTranslatableEntity(), DisplayBlockTest\testViewsBlockForm(), ViewsEscapingTest\testViewsFieldHeaderEscaping(), TaxonomyFieldAllTermsTest\testViewsHandlerAllTermsField(), TaxonomyFieldAllTermsTest\testViewsHandlerAllTermsWithTokens(), ViewsListTest\testViewsListLimit(), ConfigTranslationUiTest\testViewsTranslationUI(), ViewsEscapingTest\testViewsViewFieldsEscaping(), VocabularyLanguageTest\testVocabularyDefaultLanguageForTerms(), VocabularyUiTest\testVocabularyInterface(), VocabularyTranslationTest\testVocabularyLanguage(), VocabularyLanguageTest\testVocabularyLanguage(), VocabularyPermissionsTest\testVocabularyPermissionsTaxonomyTerm(), SimpleTestTest\testWebTestRunner(), ImageFieldWidgetTest\testWidgetElement(), ManageDisplayTest\testWidgetUI(), UpdatePathWithBrokenRoutingTest\testWithBrokenRouting(), BasicTest\testWizardForm(), ContentTranslationWorkflowsTest\testWorkflows(), RenderWebTest\testWrapperFormatCacheContext(), ElementTest\testWrapperIds(), ElementsVerticalTabsTest\testWrapperNotShownWhenEmpty(), BlockXssTest\testXssInCategory(), BlockXssTest\testXssInTitle(), MenuTest\toggleMenuLink(), AggregatorTestBase\updateFeedItems(), ManageFieldsTest\updateField(), UpdateScriptTest\updateScriptTest(), HelpTest\verifyHelp(), MenuTest\verifyMenuLink(), PageCacheTagsTestBase\verifyPageCache(), DbLogTest\verifySort(), and EditorAdminTest\verifyUnicornEditorConfiguration().

Here is the call graph for this function:

drupalGetAjax (   $path,
array  $options = array(),
array  $headers = array() 
)
protected

Requests a path or URL in drupal_ajax format and JSON-decodes the response.

Parameters
\Drupal\Core\Url | string$pathDrupal path or URL to request from.
array$optionsArray of URL options.
array$headersArray of headers.
Returns
array Decoded JSON.

References Json\decode(), WebTestBase\drupalGetXHR(), and MainContentViewSubscriber\WRAPPER_FORMAT.

Referenced by FrameworkTest\testAJAXRender(), FrameworkTest\testAJAXRenderError(), RouterTest\testControllerResolutionAjax(), DialogTest\testDialog(), StorageTest\testImmutableFormLegacyProtection(), MenuTest\testMenuParentsJsAccess(), StackSessionHandlerIntegrationTest\testRequest(), and ToolbarAdminMenuTest\testSubtreesJsonRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetHeader (   $name,
  $all_requests = FALSE 
)
protected

Gets the value of an HTTP response header.

If multiple requests were required to retrieve the page, only the headers from the last request will be checked by default. However, if TRUE is passed as the second argument, all requests will be processed from last to first until the header is found.

Parameters
$nameThe name of the header to retrieve. Names are case-insensitive (see RFC 2616 section 4.2).
$all_requestsBoolean value specifying whether to check all requests if the header is not found in the last request. Defaults to FALSE.
Returns
The HTTP header value or FALSE if not found.

References WebTestBase\drupalGetHeaders().

Referenced by WebTestBase\assertCacheContext(), WebTestBase\assertCacheTag(), WebTestBase\assertHeader(), WebTestBase\assertNoCacheContext(), WebTestBase\assertNoCacheTag(), CreateTest\assertReadEntityIdFromHeaderAndDb(), SessionTest\assertSessionEmpty(), WebTestBase\curlExec(), ImageStylesPathAndUrlTest\doImageStyleUrlAndPathTests(), DownloadTest\doPrivateFileTransferTest(), WebTestBase\drupalPostAjaxForm(), SessionHttpsTest\getPathFromLocationHeader(), BasicAuthTest\testBasicAuth(), CsrfTest\testBasicAuth(), SessionAuthenticationTest\testBasicAuthNoSession(), BlockTest\testBlockCacheTags(), AggregatorRenderingTest\testBlockLinks(), PageCacheTest\testCacheableResponseResponses(), PageCacheTest\testConditionalRequests(), RouterTest\testControllerResolutionAjax(), CsrfTest\testCookieAuth(), BrowserTest\testCookies(), DynamicPageCacheIntegrationTest\testDynamicPageCache(), SessionTest\testEmptyAnonymousSession(), ErrorHandlerTest\testExceptionHandler(), ConfigExportUITest\testExport(), AggregatorRenderingTest\testFeedPage(), ResponseTest\testFormResponse(), ResponseGeneratorTest\testGeneratorHeaderAdded(), SimpleTestBrowserTest\testInternalBrowser(), PageCacheTest\testPageCache(), PageCacheTest\testPageCacheAnonymous403404(), PageCacheTest\testPageCacheTags(), PageCacheTest\testPageCacheTagsIndependentFromCacheabilityHeaders(), PageCacheTest\testPageCacheWithoutVaryCookie(), FormStoragePageCacheTest\testRebuildFormStorageOnCachedPage(), EntityCacheTagsTestBase\testReferencedEntity(), SearchPageCacheTagsTest\testSearchTagsBubbling(), SessionTest\testSessionSaveRegenerate(), AjaxFormPageCacheTest\testSimpleAJAXFormValue(), HtaccessTest\testSvgzContentEncoding(), UserPasswordResetTest\testUserPasswordReset(), FormStoragePageCacheTest\testValidateFormStorageOnCachedPage(), RenderWebTest\testWrapperFormatCacheContext(), and PageCacheTagsTestBase\verifyPageCache().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetHeaders (   $all_requests = FALSE)
protected

Gets the HTTP response headers of the requested page.

Normally we are only interested in the headers returned by the last request. However, if a page is redirected or HTTP authentication is in use, multiple requests will be required to retrieve the page. Headers from all requests may be requested by passing TRUE to this function.

Parameters
$all_requestsBoolean value specifying whether to return headers from all requests instead of just the last request. Defaults to FALSE.
Returns
A name/value array if headers from only the last request are requested. If headers from all requests are requested, an array of name/value arrays, one for each request.

The pseudonym ":status" is used for the HTTP status line.

Values for duplicate headers are stored as a single comma-separated list.

Referenced by WebTestBase\drupalGetHeader(), RESTTestBase\httpRequest(), RouterTest\testFinishResponseSubscriber(), SimpleTestBrowserTest\testInternalBrowser(), and StyleSerializerTest\testResponseFormatConfiguration().

Here is the caller graph for this function:

drupalGetJSON (   $path,
array  $options = array(),
array  $headers = array() 
)
protected

Retrieves a Drupal path or an absolute path and JSON decodes the result.

Parameters
\Drupal\Core\Url | string$pathDrupal path or URL to request AJAX from.
array$optionsArray of URL options.
array$headersArray of headers. Eg array('Accept: application/vnd.drupal-ajax').
Returns
array Decoded json.

References Json\decode(), and WebTestBase\drupalGetWithFormat().

Referenced by StyleSerializerTest\testFieldapiField(), StyleSerializerTest\testFieldRawOutput(), StyleSerializerTest\testRestViewExposedFilter(), and StyleSerializerTest\testUIFieldAlias().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetMails (   $filter = array())
protected

Gets an array containing all emails sent during this test case.

Parameters
$filterAn array containing key/value pairs used to filter the emails that are returned.
Returns
An array containing email messages captured during the current test.

References Drupal\state().

Referenced by WebTestBase\assertMailPattern(), WebTestBase\assertMailString(), UserPasswordResetTest\getResetURL(), ContactSitewideTest\testAutoReply(), ConfigTranslationUiTest\testContactConfigEntityTranslation(), MailCaptureTest\testMailSend(), UserAdminTest\testNotificationEmailAddress(), ContactPersonalTest\testSendPersonalContactMessage(), SiteMaintenanceTest\testSiteMaintenance(), ContactSitewideTest\testSiteWideContact(), UserCreateTest\testUserAdd(), UserPasswordResetTest\testUserPasswordReset(), and WebTestBase\verboseEmail().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetNodeByTitle (   $title,
  $reset = FALSE 
)

Get a node from the database based on its title.

Parameters
string | \Drupal\Component\Render\MarkupInterface$titleA node title, usually generated by $this->randomMachineName().
$reset(optional) Whether to reset the entity cache.
Returns
A node entity matching $title.

References Drupal\entityManager().

Referenced by BookTest\createBookNode(), ForumTest\createForumTopic(), ForumBlockTest\testActiveForumTopicsBlock(), CommentLanguageTest\testCommentLanguage(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), EntityTranslationFormTest\testEntityFormLanguage(), NodeCreationTest\testFailedPageCreation(), FilterAdminTest\testFilterAdmin(), FilterFormatAccessTest\testFormatWidgetPermissions(), ForumIndexTest\testForumIndexStatus(), ForumNodeAccessTest\testForumNodeAccess(), NodeTypeInitialLanguageTest\testLanguageFieldVisibility(), NodeFieldMultilingualTest\testMultilingualNodeForm(), NodeAccessBaseTableTest\testNodeAccessBasic(), NodeEditFormTest\testNodeEdit(), TermTest\testNodeTermCreationAndDeletion(), NodeEntityViewModeAlterTest\testNodeViewModeChange(), NodePostSettingsTest\testPagePostInfo(), PagePreviewTest\testPagePreview(), TermIndexTest\testTaxonomyIndex(), LegacyTest\testTaxonomyLegacyNode(), TermTest\testTaxonomyNode(), RssTest\testTaxonomyRss(), NodeSaveTest\testTimestamps(), and PageTitleTest\testTitleTags().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetTestFiles (   $type,
  $size = NULL 
)
protected

Gets a list of files that can be used in tests.

The first time this method is called, it will call simpletest_generate_file() to generate binary and ASCII text files in the public:// directory. It will also copy all files in core/modules/simpletest/files to public://. These contain image, SQL, PHP, JavaScript, and HTML files.

All filenames are prefixed with their type and have appropriate extensions:

  • text-*.txt
  • binary-*.txt
  • html-*.html and html-*.txt
  • image-*.png, image-*.jpg, and image-*.gif
  • javascript-*.txt and javascript-*.script
  • php-*.txt and php-*.php
  • sql-*.txt and sql-*.sql

Any subsequent calls will not generate any new files, or copy the files over again. However, if a test class adds a new file to public:// that is prefixed with one of the above types, it will get returned as well, even on subsequent calls.

Parameters
$typeFile type, possible values: 'binary', 'html', 'image', 'javascript', 'php', 'sql', 'text'.
$size(optional) File size in bytes to match. Defaults to NULL, which will not filter the returned list by size.
Returns
List of files in public:// that match the filter(s).

References PublicStream\basePath(), file_scan_directory(), and file_unmanaged_copy().

Referenced by ImageStyleFlushTest\createSampleImage(), ImageAdminStylesTest\createSampleImage(), ImageStylesPathAndUrlTest\doImageStyleUrlAndPathTests(), FileFieldTestBase\getTestFile(), CommentPreviewTest\testCommentPreview(), ImageAdminStylesTest\testConfigImport(), UserPictureTest\testCreateDeletePicture(), ImageFieldDefaultImagesTest\testDefaultImages(), EntityReferenceFileUploadTest\testFileUpload(), ImageAdminStylesTest\testFlushUserInterface(), StateValuesCleanAdvancedTest\testFormStateValuesCleanAdvanced(), QuickEditLoadingTest\testImageField(), FilterHtmlImageSecureTest\testImageSource(), ConfigImportUploadTest\testImport(), FileMoveTest\testNormal(), SaveUploadTest\testNormal(), PagePreviewTest\testPagePreview(), UserPictureTest\testPictureOnNodeComment(), PrivateFileOnTranslatedEntityTest\testPrivateLanguageFile(), ImageFieldValidateTest\testRequiredAttributes(), ImageFieldValidateTest\testResolution(), ImageAdminStylesTest\testStyleReplacement(), ThemeTest\testThemeSettings(), UpdateUploadTest\testUploadModule(), and UserPasswordResetTest\testUserPasswordReset().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetWithFormat (   $path,
  $format,
array  $options = [],
array  $headers = [] 
)
protected

Retrieves a Drupal path or an absolute path for a given format.

Parameters
\Drupal\Core\Url | string$pathDrupal path or URL to request given format from.
string$formatThe wanted request format.
array$optionsArray of URL options.
array$headersArray of headers.
Returns
mixed The result of the request.

References WebTestBase\drupalGet().

Referenced by WebTestBase\drupalGetJSON(), CommentRestExportTest\testCommentRestExport(), and StyleSerializerTest\testResponseFormatConfiguration().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalGetXHR (   $path,
array  $options = array(),
array  $headers = array() 
)
protected

Requests a Drupal path or an absolute path as if it is a XMLHttpRequest.

Parameters
\Drupal\Core\Url | string$pathDrupal path or URL to request from.
array$optionsArray of URL options.
array$headersArray of headers.
Returns
string The retrieved content.

References WebTestBase\drupalGet().

Referenced by WebTestBase\drupalGetAjax(), and DialogTest\testDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalHead (   $path,
array  $options = array(),
array  $headers = array() 
)
protected

Retrieves only the headers for a Drupal path or an absolute path.

Parameters
$pathDrupal path or URL to load into internal browser
$optionsOptions to be forwarded to the url generator.
$headersAn array containing additional HTTP request headers, each formatted as "name: value".
Returns
The retrieved headers, also available as $this->getRawContent()

References WebTestBase\buildUrl(), WebTestBase\curlExec(), Html\escape(), WebTestBase\refreshVariables(), and TestBase\verbose().

Referenced by DownloadTest\doPrivateFileTransferTest(), PageCacheTest\testConditionalRequests(), and DownloadTest\testPublicFileTransfer().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalLogin ( AccountInterface  $account)
protected

Log in a user with the internal browser.

If a user is already logged in, then the current user is logged out before logging in the specified user.

Please note that neither the current user nor the passed-in user object is populated with data of the logged in user. If you need full access to the user object after logging in, it must be updated manually. If you also need access to the plain-text password of the user (set by drupalCreateUser()), e.g. to log in the same user again, then it must be re-assigned manually. For example:

// Create a user.
$account = $this->drupalCreateUser(array());
$this->drupalLogin($account);
// Load real user object.
$pass_raw = $account->pass_raw;
$account = User::load($account->id());
$account->pass_raw = $pass_raw;
Parameters
\Drupal\Core\Session\AccountInterface$accountUser object representing the user to log in.
See Also
drupalCreateUser()

References WebTestBase\$sessionId, TestBase\assert(), WebTestBase\drupalLogout(), WebTestBase\drupalPostForm(), WebTestBase\drupalUserIsLoggedIn(), format_string(), and t().

Referenced by ColorTest\_testColor(), FilterDateTest\_testUiValidation(), EditorAdminTest\addEditorToNewFormat(), ToolbarCacheContextsTest\assertToolbarCacheContexts(), NodeAccessGrantsCacheContextTest\assertUserCacheContext(), ContactPersonalTest\checkContactAccess(), BookTest\createBook(), FilterFormTest\doFilterFormTestAsAdmin(), FilterFormTest\doFilterFormTestAsNonAdmin(), ConfigTranslationListUiTest\doMenuListTest(), ContentTranslationUITestBase\doTestBasicTranslation(), MenuRouterTest\doTestThemeCallbackMaintenanceMode(), ContentTranslationUITestBase\doTestTranslationDeletion(), ContentTranslationWorkflowsTest\doTestWorkflows(), StandardProfileTest\doUserRdfaTests(), NodeTest\enableNodeConfiguration(), LocaleUpdateTest\setUp(), LocaleUpdateCronTest\setUp(), TrustedHostsTest\setUp(), DateFormatsMachineNameTest\setUp(), CommentInterfaceTest\setUp(), VocabularyTranslationTest\setUp(), ImportOpmlTest\setUp(), NodeAccessRebuildNodeGrantsTest\setUp(), EntityListBuilderTest\setUp(), BlockContentSaveTest\setUp(), ResponsiveImageAdminUITest\setUp(), FieldUIIndentationTest\setUp(), ResponseGeneratorTest\setUp(), StatusTest\setUp(), ThemeTokenTest\setUp(), LocaleFileSystemFormTest\setUp(), LocaleUpdateInterfaceTest\setUp(), LocaleLocaleLookupTest\setUp(), MenuLinkContentDeleteFormTest\setUp(), MenuLinkContentFormTest\setUp(), CacheabilityMetadataConfigOverrideIntegrationTest\setUp(), FieldUIRouteTest\setUp(), ConfigExportUITest\setUp(), LanguageNegotiationInfoTest\setUp(), ResponsiveImageFieldUiTest\setUp(), PageTitleTest\setUp(), TaxonomyTermPagerTest\setUp(), LocaleExportTest\setUp(), StyleOpmlTest\setUp(), PrivateFileOnTranslatedEntityTest\setUp(), EntityTypeWithoutLanguageFormTest\setUp(), FieldDropButtonTest\setUp(), LocaleTranslateStringTourTest\setUp(), ToolkitSetupFormTest\setUp(), LanguageTourTest\setUp(), ColorConfigSchemaTest\setUp(), LocalePluralFormatTest\setUp(), ContactLanguageTest\setUp(), AggregatorTestBase\setUp(), ManageDisplayTest\setUp(), LocaleConfigTranslationTest\setUp(), ViewsListTest\setUp(), NodeFormSaveChangedTimeTest\setUp(), NodeTitleTest\setUp(), LanguageConfigSchemaTest\setUp(), UITestBase\setUp(), UnsavedPreviewTest\setUp(), ContentTranslationStandardFieldsTest\setUp(), FieldUIDeleteTest\setUp(), LinkFieldUITest\setUp(), NodeHelpTest\setUp(), ResponsiveImageFieldDisplayTest\setUp(), FieldUITest\setUp(), BlockContentCreationTest\setUp(), LanguageSelectorTranslatableTest\setUp(), LanguageNegotiationContentEntityTest\setUp(), LocaleImportFunctionalTest\setUp(), NodeLanguageTest\setUp(), BooleanFieldTest\setUp(), BulkFormTest\setUp(), NodeRevisionsTest\setUp(), BooleanFormatterSettingsTest\setUp(), EntityReferenceAdminTest\setUp(), UpdateApiEntityDefinitionUpdateTest\setUp(), FilterAdminTest\setUp(), TermTest\setUp(), TaxonomyTermViewTest\setUp(), UserPasswordResetTest\setUp(), TwigTransTest\setUp(), EntityReferenceIntegrationTest\setUp(), DateTimeFieldTest\setUp(), ManageFieldsTest\setUp(), ConfigExportImportUITest\setUp(), ContentTranslationWorkflowsTest\setupEntity(), ContentTranslationTestBase\setupUsers(), SimpleTestTest\stubTest(), ShortcutLinksTest\testAccessShortcutsPermission(), UserAccountLinksTest\testAccountPageTitles(), ConfigTranslationUiTest\testAccountSettingsConfigurationTranslation(), ConfigurationTest\testActionConfiguration(), ActionUninstallTest\testActionUninstall(), ForumBlockTest\testActiveForumTopicsBlock(), UserAdminLanguageTest\testActualNegotiation(), EditorAdminTest\testAddEditorToExistingFormat(), SearchCommentTest\testAddNewComment(), ForumTest\testAddOrphanTopic(), BookTest\testAdminBookListing(), BookTest\testAdminBookNodeListing(), FormatDateTest\testAdminDefinedFormatDate(), FrontPageTest\testAdminFrontPage(), ThemeTest\testAdministrationTheme(), UserPermissionsTest\testAdministratorRole(), AdminTest\testAdminPages(), BlockAdminThemeTest\testAdminTheme(), HandlerFilterUserNameTest\testAdminUserInterface(), CommandsTest\testAjaxCommands(), ConfigTranslationUiTest\testAlterInfo(), AnalyzeTest\testAnalyzeBasic(), CommentAnonymousTest\testAnonymous(), CommentAdminTest\testApprovalAdminInterface(), CommentAdminTest\testApprovalNodeInterface(), ArgumentDefaultTest\testArgumentDefaultNoOptions(), NodeCreationTest\testAuthorAutocomplete(), MenuRouterTest\testAuthUserUserLogin(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), EntityReferenceAutoCreateTest\testAutoCreate(), CommentInterfaceTest\testAutoFilledHtmlSubject(), CommentInterfaceTest\testAutoFilledSubject(), CronRunTest\testAutomatedCron(), ContactSitewideTest\testAutoReply(), PageTest\testBatchProgressPageTheme(), DisplayBlockTest\testBlockCategory(), BlockContentCreationTest\testBlockContentCreation(), BlockContentCreationTest\testBlockContentCreationMultipleViewModes(), BlockContentTypeTest\testBlockContentTypeCreation(), BlockContentTypeTest\testBlockContentTypeDeletion(), BlockContentTypeTest\testBlockContentTypeEditing(), DisplayBlockTest\testBlockContextualLinks(), MenuTest\testBlockContextualLinks(), DefaultViewRecentCommentsTest\testBlockDisplay(), AjaxFormCacheTest\testBlockForms(), AggregatorRenderingTest\testBlockLinks(), BlockLanguageCacheTest\testBlockLinks(), BlockXssTest\testBlockXss(), BookTest\testBook(), CommentBookTest\testBookCommentPrint(), BookTest\testBookDelete(), BookTest\testBookExport(), BookTest\testBookListing(), BookTest\testBookNavigationBlock(), BookTest\testBookNavigationCacheContext(), BookTest\testBookOrdering(), BookTest\testBookOutline(), BulkFormTest\testBulkForm(), CachedDataUITest\testCacheData(), BlockCacheTest\testCachePerRole(), BlockCacheTest\testCachePerUser(), ColorSafePreviewTest\testColorPreview(), CommentAdminTest\testCommentAdmin(), CommentTitleTest\testCommentEmptyTitles(), CommentFieldsTest\testCommentFieldCreate(), CommentFieldsTest\testCommentFieldDelete(), CommentFieldsTest\testCommentFieldLinksNonDefaultName(), CommentFieldsTest\testCommentInstallAfterContentModule(), CommentInterfaceTest\testCommentInterface(), CommentLinksAlterTest\testCommentLinksAlter(), CommentPagerTest\testCommentNewPageIndicator(), CommentStatisticsTest\testCommentNodeCommentStatistics(), CommentOperationsTest\testCommentOperations(), CommentPagerTest\testCommentOrderingThreading(), NodeAccessPagerTest\testCommentPager(), CommentPagerTest\testCommentPaging(), CommentTitleTest\testCommentPopulatedTitles(), CommentPreviewTest\testCommentPreview(), CommentPreviewTest\testCommentPreviewDuplicateSubmission(), CommentActionsTest\testCommentPublishUnpublishActions(), CommentAttributesTest\testCommentRdfaMarkup(), CommentAttributesTest\testCommentRdfAuthorMarkup(), CommentAttributesTest\testCommentReplyOfRdfaMarkup(), CommentRssTest\testCommentRss(), CommentThreadingTest\testCommentThreading(), CommentTokenReplaceTest\testCommentTokenReplacement(), CommentTypeTest\testCommentTypeCreation(), CommentTypeTest\testCommentTypeDeletion(), CommentTypeTest\testCommentTypeEditing(), CommentActionsTest\testCommentUnpublishByKeyword(), WizardTest\testCommentWizard(), QuickEditLoadingTest\testConcurrentEdit(), PageCacheTest\testConditionalRequests(), LanguageConfigOverrideImportTest\testConfigOverrideImport(), SchemaConfigListenerWebTest\testConfigSchemaChecker(), LocaleConfigTranslationImportTest\testConfigTranslationImport(), LocaleConfigTranslationImportTest\testConfigTranslationModuleInstall(), ConfigTranslationUiTest\testContactConfigEntityTranslation(), ContactLinkTest\testContactLink(), ContactAuthenticatedUserTest\testContactSiteWideTextfieldsLoggedInTestCase(), NodeAdminTest\testContentAdminPages(), NodeAdminTest\testContentAdminSort(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), ContentTranslationOperationsTest\testContentTranslationOverviewAccess(), LocaleContentTest\testContentTypeDirLang(), LocaleContentTest\testContentTypeLanguageConfiguration(), CsrfTest\testCookieAuth(), CreateTest\testCreateComment(), UserPictureTest\testCreateDeletePicture(), CreateTest\testCreateEntityTest(), CreateTest\testCreateNode(), CreateTest\testCreateResourceRestApiNotEnabled(), CreateTest\testCreateUser(), CreateTest\testCreateWithoutPermission(), CronRunTest\testCronUI(), ConfigEntityStatusUITest\testCRUD(), ConfigEntityTest\testCRUDUI(), QuickEditLoadingTest\testCustomPipeline(), SessionTest\testDataPersistence(), ConfigTranslationUiTest\testDateFormatTranslation(), DateFormatsLockedTest\testDateLocking(), DrupalDateTimeTest\testDateTimezone(), DbLogTest\testDbLog(), DbLogTest\testDBLogAddAndClear(), LanguageConfigurationElementTest\testDefaultLangcode(), MenuLinkReorderTest\testDefaultMenuLinkReorder(), FilterDefaultFormatTest\testDefaultTextFormats(), DeleteTest\testDelete(), DialogTest\testDialog(), ContextualDynamicContextTest\testDifferentPermissions(), UserAccountLinksTest\testDisabledAccountLink(), FilterAdminTest\testDisabledFormat(), EditorAdminTest\testDisableFormatWithEditor(), NodeRevisionsUiBypassAccessTest\testDisplayRevisionTab(), UserHelpersTest\testDrupalUserIsLoggedIn(), CommentAdminTest\testEditComment(), EditorSecurityTest\testEditorXssFilterOverride(), SettingsTest\testEditUI(), BookTest\testEmptyBook(), SessionTest\testEmptySessionID(), ContentTranslationEnableTest\testEnable(), LocaleTranslationUiTest\testEnglishTranslation(), EntityTranslationFormTest\testEntityFormLanguage(), EntityDisplayModeTest\testEntityFormModeUI(), EntityReferenceFieldTranslatedReferenceViewTest\testEntityReferenceDisplay(), EntityReferenceXSSTest\testEntityReferenceXSS(), EntityDisplayModeTest\testEntityViewModeUI(), SearchExactTest\testExactQuery(), CKEditorAdminTest\testExistingFormat(), ConfigSingleImportExportTest\testExport(), UninstallTest\testFailedInstallStatus(), AggregatorRenderingTest\testFeedPage(), StyleSerializerTest\testFieldapiField(), ConfigTranslationUiTest\testFieldConfigTranslation(), TranslationWebTest\testFieldFormTranslationRevisions(), FieldHelpTest\testFieldHelp(), StyleSerializerTest\testFieldRawOutput(), LinkFieldUITest\testFieldUI(), FileListingTest\testFileListingPages(), EntityReferenceFileUploadTest\testFileUpload(), DbLogTest\testFilter(), FilterAdminTest\testFilterAdmin(), FilterHooksTest\testFilterHooks(), FilterUITest\testFilterInOperatorUi(), FilterUITest\testFiltersUI(), FilterAdminTest\testFilterTipHtmlEscape(), FilterFormatAccessTest\testFormatPermissions(), FilterFormatAccessTest\testFormatWidgetPermissions(), ElementTest\testFormAutocomplete(), ConfigFormOverrideTest\testFormsWithOverrides(), ConfigEntityFormOverrideTest\testFormsWithOverrides(), LanguageNegotiationFormOverrideTest\testFormWithOverride(), ForumTest\testForum(), ForumIntegrationTest\testForumIntegration(), ForumNodeAccessTest\testForumNodeAccess(), NodeAccessPagerTest\testForumPager(), ForumUninstallTest\testForumUninstallWithField(), ForumTest\testForumWithNewPost(), FieldEntityTest\testGetEntity(), FormTest\testGetFormsCsrfToken(), UserLoginTest\testGlobalLoginFloodControl(), HistoryTimestampTest\testHandlers(), FilterPermissionUiTest\testHandlerUI(), HelpTest\testHelp(), MenuLinkTest\testHierarchicalMenuLinkVisibility(), BookTest\testHookNodeLoadAccess(), UpdateContribTest\testHookUpdateStatusAlter(), FileSaveHtaccessLoggingTest\testHtaccessSave(), CKEditorToolbarButtonTest\testImageButtonDisplay(), QuickEditLoadingTest\testImageField(), ContentTranslationSyncImageTest\testImageFieldSync(), ConfigSingleImportExportTest\testImport(), ConfigSingleImportExportTest\testImportSimpleConfiguration(), EditorSecurityTest\testInitialSecurity(), FormTest\testInputWithInvalidToken(), SimpleTestBrowserTest\testInternalBrowser(), IpAddressBlockingTest\testIPAddressValidation(), LanguageConfigurationTest\testLanguageConfiguration(), LanguageCustomLanguageConfigurationTest\testLanguageConfiguration(), LanguageConfigurationTest\testLanguageConfigurationWeight(), LanguageListTest\testLanguageList(), BlockContentListViewsTest\testListing(), BlockContentListTest\testListing(), ConfigEntityListMultilingualTest\testListUI(), ConfigEntityListTest\testListUI(), CKEditorLoadingTest\testLoading(), EditorLoadingTest\testLoading(), UpdateCoreTest\testLocalActions(), ConfigTranslationUiTest\testLocaleDBStorage(), LocaleConfigTranslationImportTest\testLocaleRemovalAndConfigOverrideDelete(), LocaleConfigTranslationImportTest\testLocaleRemovalAndConfigOverridePreserve(), LocaleJavascriptTranslationTest\testLocaleTranslationJsDependencies(), ToolbarAdminMenuTest\testLocaleTranslationSubtreesHashCacheClear(), UserLanguageCreationTest\testLocalUserCreation(), ColorTest\testLogoSettingOverride(), LocaleContentTest\testMachineNameLTR(), MainContentFallbackTest\testMainContentFallback(), NoHelpTest\testMainPageNoHelp(), CronRunTest\testManualCron(), UserCancelTest\testMassUserCancelByAdmin(), MenuTest\testMenuParentsJsAccess(), MenuTest\testMenuQueryAndFragment(), MinimalTest\testMinimal(), LanguageListModuleInstallTest\testModuleInstallLanguageList(), ModulesListFormWebTest\testModuleListForm(), SearchMultilingualTest\testMultilingualSearchFilter(), BlockLanguageTest\testMultipleLanguageTypes(), MultiStepNodeFormBasicOptionsTest\testMultiStepNodeFormBasicOptions(), BookTest\testNavigationBlockOnAccessModuleInstalled(), CKEditorAdminTest\testNewFormat(), ForumBlockTest\testNewForumTopicsBlock(), NewViewConfigSchemaTest\testNewViews(), NodeAccessFieldTest\testNodeAccessAdministerField(), NodeAccessBaseTableTest\testNodeAccessBasic(), NodeAccessAutoBubblingTest\testNodeAccessCacheabilitySafeguard(), NodeAccessMenuLinkTest\testNodeAccessMenuLink(), NodeCreationTest\testNodeAddWithoutContentTypes(), NodeContextualLinksTest\testNodeContextualLinks(), BulkFormAccessTest\testNodeDeleteAccess(), CommentNodeChangesTest\testNodeDeletion(), NodeEditFormTest\testNodeEdit(), BulkFormAccessTest\testNodeEditAccess(), NodeFormButtonsTest\testNodeFormButtons(), NodeRevisionsUiTest\testNodeFormSaveWithoutRevision(), NodeQueryAlterTest\testNodeQueryAlterOverride(), NodeRevisionsUiTest\testNodeRevisionDoubleEscapeFix(), NodeTitleXSSTest\testNodeTitleXSS(), NodeTypeTest\testNodeTypeCreation(), LanguageConfigurationElementTest\testNodeTypeDelete(), NodeTypeTest\testNodeTypeDeletion(), NodeTypeTest\testNodeTypeFieldUiPermissions(), NodeTypeTranslationTest\testNodeTypeTitleLabelTranslation(), NodeTypeTranslationTest\testNodeTypeTranslation(), LanguageConfigurationElementTest\testNodeTypeUpdate(), NodeEntityViewModeAlterTest\testNodeViewModeChange(), EditorAdminTest\testNoEditorAvailable(), ToolbarAdminMenuTest\testNonCurrentUserAccountUpdates(), NonDefaultBlockAdminTest\testNonDefaultBlockAdmin(), UserAdminTest\testNotificationEmailAddress(), BlockXssTest\testNoUnexpectedEscaping(), UpdateScriptTest\testNoUpdateFunctionality(), CommentAttributesTest\testNumberOfCommentsRdfaMarkup(), ContentTranslationOperationsTest\testOperationTranslateLink(), ColorTest\testOverrideAndResetScheme(), DbLogTest\testOverviewLinks(), PageCacheTest\testPageCache(), PageCacheTest\testPageCacheAnonymousRolePermissions(), DisplayTest\testPageContextualLinks(), DisplayPageWebTest\testPageDisplayMenu(), BlockContentPageViewTest\testPageEdit(), PageEditTest\testPageEdit(), DisplayPageWebTest\testPagePaths(), ConfigEntityListTest\testPager(), PagerTest\testPagerConfigTranslation(), PageViewTest\testPageView(), NodeContextualLinksTest\testPageWithDisabledContextualModule(), UserLoginTest\testPasswordRehashOnLogin(), UpdateTest\testPatchUpdate(), LocalePathTest\testPathLanguageConfiguration(), RouterPermissionTest\testPermissionAccess(), ContactPersonalTest\testPersonalContactAccess(), ContactPersonalTest\testPersonalContactFlood(), UserLoginTest\testPerUserLoginFloodControl(), UserPictureTest\testPictureOnNodeComment(), ConfigTranslationUiTest\testPluralConfigStrings(), ConfigTranslationUiTest\testPluralConfigStringsSourceElements(), ConfigInstallWebTest\testPreExistingConfigInstall(), RebuildTest\testPreserveFormActionAfterAJAX(), NodeTranslationUITest\testPublishedStatusNoFields(), SearchQueryAlterTest\testQueryAlter(), AjaxFormCacheTest\testQueryString(), AuthTest\testRead(), ReadTest\testRead(), CommentBlockTest\testRecentCommentBlock(), NodeBlockFunctionalTest\testRecentNodeBlock(), RedirectTest\testRedirectFromErrorPages(), reEnableModuleFieldTest\testReEnabledField(), HandlerTest\testRelationshipUI(), AreaTest\testRenderAreaToken(), ReportTest\testReport(), UpdateScriptTest\testRequirements(), ReadTest\testResourceStructure(), StyleSerializerTest\testResponseFormatConfiguration(), NodeRevisionsAllTest\testRevisions(), UserRoleAdminTest\testRoleAdministration(), UserRoleAdminTest\testRoleWeightOrdering(), BlockContentTypeTest\testsBlockContentAddTypes(), SearchPageTextTest\testSearchLabelXSS(), SearchCommentTest\testSearchResultsComment(), SearchCommentTest\testSearchResultsCommentAccess(), SearchPageCacheTagsTest\testSearchTagsBubbling(), SearchPageCacheTagsTest\testSearchText(), SearchPageTextTest\testSearchText(), UserAccountLinksTest\testSecondaryMenu(), OptionsSelectDynamicValuesTest\testSelectListDynamic(), ContactPersonalTest\testSendPersonalContactMessage(), StyleSerializerTest\testSerializerViewsUI(), SessionTest\testSessionPersistenceOnLogin(), SessionTest\testSessionSaveRegenerate(), SessionTest\testSessionWrite(), SyslogTest\testSettings(), ContentTranslationMetadataFieldsTest\testSetTranslatable(), BlockAdminThemeTest\testSevenAdminTheme(), ShortcutLinksTest\testShortcutBlockAccess(), ShortcutLinksTest\testShortcutLinkAdd(), ShortcutLinksTest\testShortcutLinkOrder(), ShortcutLinksTest\testShortcutQuickLink(), PagePreviewTest\testSimultaneousPreview(), ConfigTranslationUiTest\testSingleLanguageUI(), ConfigTranslationUiTest\testSiteInformationTranslationUi(), SiteMaintenanceTest\testSiteMaintenance(), ConfigLanguageOverrideWebTest\testSiteNameTranslation(), ContactSitewideTest\testSiteWideContact(), ContentTranslationMetadataFieldsTest\testSkipUntranslatable(), CommentNonNodeTest\testsNonIntegerIdEntities(), ConfigTranslationUiTest\testSourceAndTargetLanguage(), ConfigTranslationUiTest\testSourceValueDuplicateSave(), LocaleImportFunctionalTest\testStandalonePoFile(), StatisticsTokenReplaceTest\testStatisticsTokenReplacement(), StatusExtraTest\testStatusExtra(), PagerTest\testStorePagerSettings(), LocaleTranslationUiTest\testStringSearch(), LocaleTranslationUiTest\testStringTranslation(), LocaleTranslationUiTest\testStringValidation(), ToolbarAdminMenuTest\testSubtreesJsonRequest(), UpdateScriptTest\testSuccessfulUpdateFunctionality(), EditorLoadingTest\testSupportedElementTypes(), EditorSecurityTest\testSwitchingSecurity(), MenuTest\testSystemMenuRename(), LanguageConfigurationElementTest\testTaxonomyVocabularyUpdate(), DbLogTest\testTemporaryUser(), TermNameFieldTest\testTermNameField(), TermTranslationTest\testTermsTranslation(), BlockTest\testThemeAdminLink(), ConfigTranslationUiThemeTest\testThemeDiscovery(), UpdateScriptTest\testThemeSystem(), CommentNodeAccessTest\testThreadedCommentView(), QuickEditLoadingTest\testTitleBaseField(), TokenReplaceWebTest\testTokens(), ToolkitSetupFormTest\testToolkitSetupForm(), TrackerTest\testTrackerAdminUnpublish(), TrackerTest\testTrackerAll(), TrackerTest\testTrackerCronIndexing(), TrackerTest\testTrackerHistoryMetadata(), TrackerNodeAccessTest\testTrackerNodeAccess(), TrackerTest\testTrackerOrderingNewComments(), TrackerTest\testTrackerUser(), CommentTranslationUITest\testTranslateLinkCommentAdminPage(), TermTranslationUITest\testTranslateLinkVocabularyAdminPage(), MenuLinkContentTranslationUITest\testTranslationLinkTheme(), NodeTranslationUITest\testTranslationLinkTheme(), CommentPagerTest\testTwoPagers(), AreaTest\testUI(), LanguageBrowserDetectionTest\testUIBrowserLanguageMappings(), ContentTranslationUISkipTest\testUICheckSkip(), LocaleTranslationUiTest\testUICustomizedStrings(), StyleSerializerTest\testUIFieldAlias(), UninstallTest\testUninstallPage(), ConfigInstallWebTest\testUnmetDependenciesInstall(), MenuTest\testUnpublishedNodeMenuItem(), UpdateScriptTest\testUpdateAccess(), UpdatePathTestBaseFilledTest\testUpdatedSite(), UpdatePathRC1TestBaseFilledTest\testUpdatedSite(), BlockContextMappingUpdateTest\testUpdateHookN(), UpdateSchemaTest\testUpdateHooks(), UpdateTest\testUpdateUser(), UrlAlterFunctionalTest\testUrlAlter(), LinkFieldTest\testURLValidation(), RouterTest\testUserAccount(), UserCreateFailMailTest\testUserAdd(), UserCreateTest\testUserAdd(), UserAdminTest\testUserAdmin(), UserAdminLanguageTest\testUserAdminLanguageConfigurationAvailableIfAdminLanguageNegotiationIsEnabled(), UserAdminLanguageTest\testUserAdminLanguageConfigurationAvailableWithAdminLanguageNegotiation(), UserAdminLanguageTest\testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage(), UserCancelTest\testUserAnonymize(), FastTest\testUserAutocomplete(), UserCancelTest\testUserBlock(), UserCancelTest\testUserBlockUnpublish(), UserCancelTest\testUserCancelByAdmin(), UserCancelTest\testUserCancelChangePermission(), UserCancelTest\testUserCancelInvalid(), UserCancelTest\testUserCancelUid1(), UserCancelTest\testUserCancelWithoutPermission(), UserCancelTest\testUserDelete(), BulkFormAccessTest\testUserDeleteAccess(), UserEditTest\testUserEdit(), BulkFormAccessTest\testUserEditAccess(), UserLanguageTest\testUserLanguageConfiguration(), UserAdminListingTest\testUserListing(), UserPasswordResetTest\testUserPasswordResetLoggedIn(), UserPermissionsTest\testUserPermissionChanges(), ToolbarAdminMenuTest\testUserRoleUpdateSubtreesHashCacheClear(), QuickEditIntegrationLoadingTest\testUsersWithoutPermission(), UserTimeZoneTest\testUserTimeZone(), UserTokenReplaceTest\testUserTokenReplacement(), UserEditTest\testUserWith0Password(), UserCancelTest\testUserWithoutEmailCancelByAdmin(), UserEditTest\testUserWithoutEmailEdit(), QuickEditLoadingTest\testUserWithoutPermission(), QuickEditIntegrationLoadingTest\testUserWithPermission(), QuickEditLoadingTest\testUserWithPermission(), ValidationTest\testValidate(), ColorTest\testValidColor(), DisplayBlockTest\testViewsBlockForm(), ConfigTranslationUiTest\testViewsTranslationUI(), VocabularyPermissionsTest\testVocabularyPermissionsTaxonomyTerm(), DbLogResourceTest\testWatchdog(), ContentTranslationWorkflowsTest\testWorkflows(), ElementsVerticalTabsTest\testWrapperNotShownWhenEmpty(), BlockXssTest\testXssInCategory(), BlockXssTest\testXssInTitle(), and UpdateScriptTest\updateScriptTest().

Here is the call graph for this function:

drupalLogout ( )
protected

Logs a user out of the internal browser and confirms.

Confirms logout by checking the login page.

References WebTestBase\assertResponse(), and WebTestBase\drupalGet().

Referenced by CreateTest\assertCreateEntityWithoutProperPermissions(), ToolbarCacheContextsTest\assertToolbarCacheContexts(), NodeAccessGrantsCacheContextTest\assertUserCacheContext(), ContactPersonalTest\checkContactAccess(), BookTest\createBook(), LanguageSwitchingTest\doTestLanguageBlockAnonymous(), LanguageSwitchingTest\doTestLanguageLinkActiveClassAnonymous(), StandardProfileTest\doUserRdfaTests(), WebTestBase\drupalLogin(), CommentInterfaceTest\setUp(), UserPasswordResetTest\setUp(), SearchCommentTest\testAddNewComment(), CommentAnonymousTest\testAnonymous(), CommentAdminTest\testApprovalAdminInterface(), CommentAdminTest\testApprovalNodeInterface(), CronRunTest\testAutomatedCron(), ContactSitewideTest\testAutoReply(), BlockTest\testBlockCacheTags(), BlockTest\testBlockVisibility(), BlockTest\testBlockVisibilityListedEmpty(), BookTest\testBook(), BookTest\testBookExport(), BlockCacheTest\testCachePermissions(), BlockCacheTest\testCachePerRole(), CommentFieldsTest\testCommentFieldLinksNonDefaultName(), CommentFieldsTest\testCommentInstallAfterContentModule(), CommentInterfaceTest\testCommentInterface(), CommentStatisticsTest\testCommentNodeCommentStatistics(), CommentPagerTest\testCommentPaging(), CommentPreviewTest\testCommentPreview(), CommentPreviewTest\testCommentPreviewDuplicateSubmission(), CommentAttributesTest\testCommentRdfaMarkup(), CommentThreadingTest\testCommentThreading(), ConfigTranslationUiTest\testContactConfigEntityTranslation(), NodeAdminTest\testContentAdminPages(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), LocaleContentTest\testContentTypeDirLang(), LocaleContentTest\testContentTypeLanguageConfiguration(), SessionTest\testDataPersistence(), DeleteTest\testDelete(), UserHelpersTest\testDrupalUserIsLoggedIn(), CommentAdminTest\testEditComment(), BookTest\testEmptyBook(), AggregatorRenderingTest\testFeedPage(), FieldAccessTest\testFieldAccess(), ForumTest\testForum(), UserLoginTest\testGlobalLoginFloodControl(), HistoryTest\testHistory(), SimpleTestBrowserTest\testInternalBrowser(), LanguageSwitchingTest\testLanguageBodyClass(), EditorLoadingTest\testLoading(), ToolbarAdminMenuTest\testLocaleTranslationSubtreesHashCacheClear(), UserLanguageCreationTest\testLocalUserCreation(), BlockLanguageTest\testMultipleLanguageTypes(), BookTest\testNavigationBlockOnAccessModuleInstalled(), NodeAccessAutoBubblingTest\testNodeAccessCacheabilitySafeguard(), NodeAccessMenuLinkTest\testNodeAccessMenuLink(), NodeFormButtonsTest\testNodeFormButtons(), UserAdminTest\testNotificationEmailAddress(), ContentTranslationOperationsTest\testOperationTranslateLink(), ColorTest\testOverrideAndResetScheme(), PageCacheTest\testPageCache(), UserLoginTest\testPasswordRehashOnLogin(), UpdateTest\testPatchUpdate(), ContactPersonalTest\testPersonalContactAccess(), UserLoginTest\testPerUserLoginFloodControl(), ReadTest\testRead(), CommentBlockTest\testRecentCommentBlock(), NodeBlockFunctionalTest\testRecentNodeBlock(), SearchCommentTest\testSearchResultsComment(), SearchCommentTest\testSearchResultsCommentAccess(), UserAccountLinksTest\testSecondaryMenu(), ContactPersonalTest\testSendPersonalContactMessage(), SessionTest\testSessionSaveRegenerate(), ShortcutLinksTest\testShortcutBlockAccess(), SiteMaintenanceTest\testSiteMaintenance(), ConfigLanguageOverrideWebTest\testSiteNameTranslation(), ContactSitewideTest\testSiteWideContact(), ConfigTranslationUiTest\testSourceValueDuplicateSave(), LocaleTranslationUiTest\testStringSearch(), LocaleTranslationUiTest\testStringTranslation(), CommentNodeAccessTest\testThreadedCommentView(), TrackerTest\testTrackerHistoryMetadata(), MenuTest\testUnpublishedNodeMenuItem(), UpdateScriptTest\testUpdateAccess(), BlockContextMappingUpdateTest\testUpdateHookN(), LanguageUILanguageNegotiationTest\testUrlLanguageFallback(), SimpleTestBrowserTest\testUserAgentValidation(), UserEditTest\testUserEdit(), UserLanguageTest\testUserLanguageConfiguration(), UserBlocksTest\testUserLoginBlock(), UserPasswordResetTest\testUserPasswordReset(), UserTokenReplaceTest\testUserTokenReplacement(), and UserRegistrationTest\testUuidFormState().

Here is the call graph for this function:

drupalPlaceBlock (   $plugin_id,
array  $settings = array() 
)
protected

Creates a block instance based on default settings.

Parameters
string$plugin_idThe plugin ID of the block type for this block instance.
array$settings(optional) An associative array of settings for the block entity. Override the defaults by specifying the key and value in the array, for example:
$this->drupalPlaceBlock('system_powered_by_block', array(
'label' => t('Hello, world!'),
));
The following defaults are provided:
  • label: Random string.
  • ID: Random string.
  • region: 'sidebar_first'.
  • theme: The default theme.
  • visibility: Empty array.
Returns
The block entity.
Todo:
Add support for creating custom block instances.

References TestBase\config().

Referenced by MenuTest\addCustomMenu(), ConfigTranslationListUiTest\doBlockListTest(), ConfigEntityImportTest\doBlockUpdate(), ImportOpmlTest\openImportForm(), BlockSystemBrandingTest\setUp(), SettingsTest\setUp(), ShortcutSetsTest\setUp(), NonDefaultBlockAdminTest\setUp(), EntityDisplayModeTest\setUp(), UserAccountLinksTest\setUp(), BlockFormInBlockTest\setUp(), ConfigEntityListMultilingualTest\setUp(), MenuAccessTest\setUp(), ConfigEntityListTest\setUp(), LocalActionTest\setUp(), FieldUIRouteTest\setUp(), TaxonomyTestBase\setUp(), ShortcutLinksTest\setUp(), ResponsiveImageFieldUiTest\setUp(), FileFieldWidgetTest\setUp(), PageTitleTest\setUp(), SearchPageTextTest\setUp(), BrowserTest\setUp(), LanguageTourTest\setUp(), AggregatorTestBase\setUp(), ManageDisplayTest\setUp(), LocalTasksTest\setUp(), UserRoleAdminTest\setUp(), ViewsListTest\setUp(), NodeTitleTest\setUp(), ContactSitewideTest\setUp(), HandlerTest\setUp(), DisplayPageWebTest\setUp(), FieldUIDeleteTest\setUp(), LinkFieldUITest\setUp(), NodeHelpTest\setUp(), CommentTypeTest\setUp(), MenuLinkTest\setUp(), EntityReferenceAdminTest\setUp(), FilterAdminTest\setUp(), TourTest\setUp(), TermTest\setUp(), UserPasswordResetTest\setUp(), DbLogTest\setUp(), BlockContentTranslationUITest\setUp(), CommentNonNodeTest\setUp(), AccessTestBase\setUp(), BlockContentTestBase\setUp(), ManageFieldsTest\setUp(), BookTest\setUp(), ForumTest\setUp(), ForumBlockTest\testActiveForumTopicsBlock(), BlockContentCacheTagsTest\testBlock(), BlockTest\testBlock(), BlockTest\testBlockAccess(), BlockUiTest\testBlockAdminUiPage(), BlockTest\testBlockCacheTags(), DisplayBlockTest\testBlockContextualLinks(), MenuTest\testBlockContextualLinks(), BlockUiTest\testBlockDemoUiPage(), AjaxFormCacheTest\testBlockForms(), BlockInvalidRegionTest\testBlockInInvalidRegion(), AggregatorRenderingTest\testBlockLinks(), DisplayBlockTest\testBlockRendering(), BlockRenderOrderTest\testBlockRenderOrder(), BookTest\testBookNavigationBlock(), LocaleConfigTranslationImportTest\testConfigTranslationModuleInstall(), QuickEditLoadingTest\testContentBlock(), MenuLinkReorderTest\testDefaultMenuLinkReorder(), DisplayBlockTest\testDeleteBlockDisplay(), DeleteFeedTest\testDeleteFeed(), LanguageUILanguageNegotiationTest\testDisableLanguageSwitcher(), NodeRevisionsUiBypassAccessTest\testDisplayRevisionTab(), ExposedFormTest\testExposedBlock(), DisplayFeedTest\testFeedOutput(), ForumNodeAccessTest\testForumNodeAccess(), ConfigSingleImportExportTest\testImportSimpleConfiguration(), DisplayTest\testInvalidDisplayPlugins(), ItemsPerPageTest\testItemsPerPage(), LanguageSwitchingTest\testLanguageBlock(), BlockLanguageTest\testLanguageBlockVisibilityLanguageDelete(), LanguageSwitchingTest\testLanguageSessionSwitchLinks(), LocalTasksTest\testLocalTaskBlock(), MenuAccessTest\testMenuBlockLinksAccessCheck(), MenuLinkSecurityTest\testMenuLink(), BookTest\testNavigationBlockOnAccessModuleInstalled(), NewDefaultThemeBlocksTest\testNewDefaultThemeBlocks(), ForumBlockTest\testNewForumTopicsBlock(), ColorTest\testOverrideAndResetScheme(), OverrideDisplaysTest\testOverrideDisplays(), PageCacheTagsIntegrationTest\testPageCacheTags(), DisplayTest\testPageContextualLinks(), DisplayPageWebTest\testPageDisplayMenu(), StatisticsReportsTest\testPopularContentBlock(), AjaxFormCacheTest\testQueryString(), CommentBlockTest\testRecentCommentBlock(), NodeBlockFunctionalTest\testRecentNodeBlock(), RedirectTest\testRedirectFromErrorPages(), ThemeTest\testRegionClass(), HtmlResponseAttachmentsTest\testRenderCachedBlock(), BlockAdminThemeTest\testSevenAdminTheme(), ShortcutLinksTest\testShortcutBlockAccess(), ConfigTranslationUiTest\testSiteInformationTranslationUi(), ConfigLanguageOverrideWebTest\testSiteNameTranslation(), NodeSyndicateBlockTest\testSyndicateBlock(), BlockTest\testThemeAdminLink(), BlockTest\testThemeName(), ThemeTest\testThemeSettings(), PageTitleTest\testTitleXSS(), LanguageUILanguageNegotiationTest\testUrlLanguageFallback(), UserBlocksTest\testWhosOnlineBlock(), OverrideDisplaysTest\testWizardMixedDefaultOverriddenDisplays(), BlockXssTest\testXssInCategory(), and BlockXssTest\testXssInTitle().

Here is the call graph for this function:

drupalPost (   $path,
  $accept,
array  $post,
  $options = array() 
)
protected

Perform a POST HTTP request.

Parameters
string | \Drupal\Core\Url$pathDrupal path or absolute path where the request should be POSTed.
string$acceptThe value for the "Accept" header. Usually either 'application/json' or 'application/vnd.drupal-ajax'.
array$postThe POST data. When making a 'application/vnd.drupal-ajax' request, the Ajax page state data should be included. Use getAjaxPageStatePostData() for that.
array$options(optional) Options to be forwarded to the url generator. The 'absolute' option will automatically be enabled.
Returns
The content returned from the call to curl_exec().
See Also
WebTestBase::getAjaxPageStatePostData()
WebTestBase::curlExec()

References WebTestBase\buildUrl(), WebTestBase\curlExec(), and WebTestBase\serializePostValues().

Referenced by PreviewTest\clickPreviewLinkAJAX(), WebTestBase\drupalPostWithFormat(), ViewAjaxTest\testAjaxView(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), MenuTest\testBlockContextualLinks(), QuickEditLoadingTest\testConcurrentEdit(), QuickEditLoadingTest\testCustomPipeline(), DestinationTest\testDestination(), QuickEditLoadingTest\testImageField(), QuickEditLoadingTest\testTitleBaseField(), QuickEditIntegrationLoadingTest\testUsersWithoutPermission(), QuickEditLoadingTest\testUserWithoutPermission(), QuickEditIntegrationLoadingTest\testUserWithPermission(), and QuickEditLoadingTest\testUserWithPermission().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalPostAjaxForm (   $path,
  $edit,
  $triggering_element,
  $ajax_path = NULL,
array  $options = array(),
array  $headers = array(),
  $form_html_id = NULL,
  $ajax_settings = NULL 
)
protected

Executes an Ajax form submission.

This executes a POST as ajax.js does. The returned JSON data is used to update $this->content via drupalProcessAjaxResponse(). It also returns the array of AJAX commands received.

Parameters
\Drupal\Core\Url | string$pathLocation of the form containing the Ajax enabled element to test. Can be either a Drupal path or an absolute path or NULL to use the current page.
$editField data in an associative array. Changes the current input fields (where possible) to the values indicated.
$triggering_elementThe name of the form element that is responsible for triggering the Ajax functionality to test. May be a string or, if the triggering element is a button, an associative array where the key is the name of the button and the value is the button label. i.e.) array('op' => t('Refresh')).
$ajax_path(optional) Override the path set by the Ajax settings of the triggering element.
$options(optional) Options to be forwarded to the url generator.
$headers(optional) An array containing additional HTTP request headers, each formatted as "name: value". Forwarded to drupalPostForm().
$form_html_id(optional) HTML ID of the form to be submitted, use when there is more than one identical form on the same page and the value of the triggering element is not enough to identify the form. Note this is not the Drupal ID of the form but rather the HTML ID of the form.
$ajax_settings(optional) An array of Ajax settings which if specified will be used in place of the Ajax settings of the triggering element.
Returns
An array of Ajax commands.
See Also
drupalPostForm()
drupalProcessAjaxResponse()
ajax.js

References AjaxResponseSubscriber\AJAX_REQUEST_PARAMETER, TestBase\assertIdentical(), Json\decode(), WebTestBase\drupalGet(), WebTestBase\drupalGetHeader(), WebTestBase\drupalPostForm(), WebTestBase\drupalProcessAjaxResponse(), WebTestBase\getAjaxPageStatePostData(), UrlHelper\parse(), WebTestBase\serializePostValues(), TestBase\verbose(), and MainContentViewSubscriber\WRAPPER_FORMAT.

Referenced by PreviewTest\getPreviewAJAX(), EditorAdminTest\selectUnicornEditor(), EditorAdminTest\testAddEditorToExistingFormat(), CommandsTest\testAjaxCommands(), ElementValidationTest\testAjaxElementValidation(), AjaxFormPageCacheTest\testAjaxElementValidation(), AjaxFormCacheTest\testBlockForms(), BooleanFieldTest\testBooleanField(), BooleanFormatterSettingsTest\testBooleanFormatterSettings(), ConfigEntityTest\testCRUDUI(), FrameworkTest\testCurrentPathChange(), DialogTest\testDialog(), CKEditorAdminTest\testExistingFormat(), EntityReferenceAdminTest\testFieldAdminHandler(), ManageDisplayTest\testFormatterUI(), FrameworkTest\testLazyLoad(), FrameworkTest\testLazyLoadOverriddenCSS(), FileManagedFileElementTest\testManagedFile(), MultiFormTest\testMultiForm(), NestedFormTest\testNestedFieldForm(), CKEditorAdminTest\testNewFormat(), NumberFieldTest\testNumberFormatter(), FrameworkTest\testOrder(), RebuildTest\testPreserveFormActionAfterAJAX(), AjaxFormCacheTest\testQueryString(), UserRegistrationTest\testRegistrationWithUserFields(), ResponsiveImageFieldUiTest\testResponsiveImageFormatterUI(), RowUITest\testRowUI(), FormValuesTest\testSimpleAjaxFormValue(), AjaxFormPageCacheTest\testSimpleAJAXFormValue(), FileFieldWidgetTest\testSingleValuedWidget(), CommentPagerTest\testTwoPagers(), UserPasswordResetTest\testUserPasswordReset(), ManageDisplayTest\testWidgetUI(), and BasicTest\testWizardForm().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalPostForm (   $path,
  $edit,
  $submit,
array  $options = array(),
array  $headers = array(),
  $form_html_id = NULL,
  $extra_post = NULL 
)
protected

Executes a form submission.

It will be done as usual POST request with SimpleBrowser.

Parameters
\Drupal\Core\Url | string$pathLocation of the post form. Either a Drupal path or an absolute path or NULL to post to the current page. For multi-stage forms you can set the path to NULL and have it post to the last received page. Example:
// First step in form.
$edit = array(...);
$this->drupalPostForm('some_url', $edit, t('Save'));
// Second step in form.
$edit = array(...);
$this->drupalPostForm(NULL, $edit, t('Save'));
Parameters
$editField data in an associative array. Changes the current input fields (where possible) to the values indicated.

When working with form tests, the keys for an $edit element should match the 'name' parameter of the HTML of the form. For example, the 'body' field for a node has the following HTML:

<textarea id="edit-body-und-0-value" class="text-full form-textarea
resize-vertical" placeholder="" cols="60" rows="9"
name="body[0][value]"></textarea>

When testing this field using an $edit parameter, the code becomes:

$edit["body[0][value]"] = 'My test value';

A checkbox can be set to TRUE to be checked and should be set to FALSE to be unchecked. Multiple select fields can be tested using 'name[]' and setting each of the desired values in an array:

$edit = array();
$edit['name[]'] = array('value1', 'value2');
Parameters
$submitValue of the submit button whose click is to be emulated. For example, t('Save'). The processing of the request depends on this value. For example, a form may have one button with the value t('Save') and another button with the value t('Delete'), and execute different code depending on which one is clicked.

This function can also be called to emulate an Ajax submission. In this case, this value needs to be an array with the following keys:

  • path: A path to submit the form values to for Ajax-specific processing.
  • triggering_element: If the value for the 'path' key is a generic Ajax processing path, this needs to be set to the name of the element. If the name doesn't identify the element uniquely, then this should instead be an array with a single key/value pair, corresponding to the element name and value. The uses this to find the #ajax information for the element, including which specific callback to use for processing the request.

This can also be set to NULL in order to emulate an Internet Explorer submission of a form with a single text field, and pressing ENTER in that textfield: under these conditions, no button information is added to the POST data.

Parameters
$optionsOptions to be forwarded to the url generator.
$headersAn array containing additional HTTP request headers, each formatted as "name: value".
$form_html_id(optional) HTML ID of the form to be submitted. On some pages there are many identical forms, so just using the value of the submit button is not enough. For example: 'trigger-node-presave-assign-form'. Note that this is not the Drupal $form_id, but rather the HTML ID of the form, which is typically the same thing but with hyphens replacing the underscores.
$extra_post(optional) A string of additional data to append to the POST submission. This can be used to add POST data for which there are no HTML fields, as is done by drupalPostAjaxForm(). This string is literally appended to the POST data, so it must already be urlencoded and contain a leading "&" (e.g., "&extra_var1=hello+world&extra_var2=you%26me").

References TestBase\assertTrue(), WebTestBase\checkForMetaRefresh(), WebTestBase\curlExec(), WebTestBase\drupalGet(), Html\escape(), TestBase\fail(), SafeMarkup\format(), format_string(), WebTestBase\getAbsoluteUrl(), WebTestBase\handleForm(), WebTestBase\refreshVariables(), WebTestBase\serializePostValues(), and TestBase\verbose().

Referenced by ColorTest\_testColor(), StringFieldTest\_testTextfieldWidgets(), FilterDateTest\_testUiValidation(), ContactSitewideTest\addContactForm(), UserAdminLanguageTest\addCustomLanguage(), MenuTest\addCustomMenu(), EditorAdminTest\addEditorToNewFormat(), MenuTest\addInvalidMenuLink(), LocaleUpdateBase\addLanguage(), MenuTest\addMenuLink(), ManageFieldsTest\addPersistentFieldStorage(), OptionsFieldUITest\assertAllowedValuesInput(), SearchCommentTest\assertCommentAccess(), UserLoginTest\assertFailedLogin(), LinkFieldTest\assertInvalidEntries(), NumberFieldTest\assertSetMinimumValue(), ContentTranslationSettingsTest\assertSettings(), LinkFieldTest\assertValidEntries(), ManageFieldsTest\cardinalitySettings(), ContactPersonalTest\checkContactAccess(), DisplayFeedTest\checkFeedViewUi(), MenuTest\checkInvalidParentMenuLinks(), NodeEditFormTest\checkVariousAuthoredByValues(), BookTest\createBookNode(), AggregatorTestBase\createFeed(), ForumTest\createForum(), ForumTest\createForumTopic(), ForumBlockTest\createForumTopics(), AggregatorTestBase\createSampleNodes(), CommentTestBase\deleteComment(), ContactSitewideTest\deleteContactForms(), MenuTest\deleteCustomMenu(), AggregatorTestBase\deleteFeed(), AggregatorTestBase\deleteFeedItems(), ForumTest\deleteForum(), MenuTest\deleteMenuLink(), MenuTest\disableMenuLink(), DisplayPathTest\doAdvancedPathsValidationTest(), DisplayPathTest\doBasicPathUITest(), ConfigTranslationListUiTest\doMenuListTest(), MenuTest\doMenuTests(), DisplayPathTest\doPathXssFilterTest(), ConfigTranslationListUiTest\doResponsiveImageListTest(), CommentTranslationUITest\doTestAuthoringInfo(), NodeTranslationUITest\doTestAuthoringInfo(), ContentTranslationUITestBase\doTestAuthoringInfo(), ContentTranslationUITestBase\doTestBasicTranslation(), EntityFormTest\doTestFormCRUD(), MenuTest\doTestMenuBlock(), EntityFormTest\doTestMultilingualFormCRUD(), ContentTranslationUITestBase\doTestOutdatedStatus(), CommentTranslationUITest\doTestPublishedStatus(), NodeTranslationUITest\doTestPublishedStatus(), ContentTranslationUITestBase\doTestPublishedStatus(), ContentTranslationUITestBase\doTestTranslationDeletion(), WebTestBase\drupalLogin(), WebTestBase\drupalPostAjaxForm(), ForumTest\editForumVocabulary(), MenuTest\enableMenuLink(), LocalePluralFormatTest\importPoFile(), LocaleImportFunctionalTest\importPoFile(), TwigTransTest\installLanguages(), SessionHttpsTest\loginHttp(), SessionHttpsTest\loginHttps(), MenuTest\modifyMenuLink(), BlockTest\moveBlockToRegion(), MenuTest\moveMenuLink(), CommentNonNodeTest\performCommentOperation(), CommentTestBase\performCommentOperation(), CommentTestBase\postComment(), CommentNonNodeTest\postComment(), ImageFieldTestBase\previewNodeImage(), UITestBase\randomView(), MenuTest\resetMenuLink(), ArgumentValidatorTest\saveArgumentHandlerWithValidationOptions(), UserPictureTest\saveUserPicture(), UserAdminLanguageTest\setLanguageNegotiation(), ConfigTranslationUiTest\setSiteInformation(), LanguageNegotiationInfoTest\setUp(), PrivateFileOnTranslatedEntityTest\setUp(), LocaleConfigTranslationTest\setUp(), ContentTranslationWorkflowsTest\setupEntity(), InstallerTestBase\setUpLanguage(), InstallerTestBase\setUpProfile(), InstallerExistingDatabaseSettingsTest\setUpSettings(), InstallerTestBase\setUpSettings(), InstallerTestBase\setUpSite(), ContactSitewideTest\submitContact(), ImportOpmlTest\submitImportForm(), ContactPersonalTest\submitPersonalContact(), ElementsAccessTest\testAccessFalse(), AccessRoleUITest\testAccessRoleUI(), ContentTranslationSettingsTest\testAccountLanguageSettingsUI(), ConfigTranslationUiTest\testAccountSettingsConfigurationTranslation(), ConfigurationTest\testActionConfiguration(), DisplayTest\testActionLinks(), UserAdminLanguageTest\testActualNegotiation(), DisplayCRUDTest\testAddDisplay(), DisplayTest\testAddDisplay(), EditorAdminTest\testAddEditorToExistingFormat(), AddFeedTest\testAddFeed(), SearchCommentTest\testAddNewComment(), ForumTest\testAddOrphanTopic(), PathAliasTest\testAdminAlias(), FormatDateTest\testAdminDefinedFormatDate(), ThemeTest\testAdministrationTheme(), UserPermissionsTest\testAdministratorRole(), BlockAdminThemeTest\testAdminTheme(), HandlerFilterUserNameTest\testAdminUserInterface(), PathLanguageTest\testAliasTranslation(), AnalyzeTest\testAnalyzeBasic(), CommentAnonymousTest\testAnonymous(), CommentAdminTest\testApprovalAdminInterface(), ArgumentDefaultTest\testArgumentDefaultNoOptions(), UserRolesAssignmentTest\testAssignAndRemoveRole(), DisplayAttachmentTest\testAttachmentUI(), TriggeringElementTest\testAttemptAccessControlBypass(), EntityReferenceAutoCreateTest\testAutoCreate(), CommentInterfaceTest\testAutoFilledHtmlSubject(), CronRunTest\testAutomatedCron(), SessionAuthenticationTest\testBasicAuthNoSession(), ProcessingTest\testBatchForm(), ProcessingTest\testBatchFormMultipleBatches(), ProcessingTest\testBatchFormMultistep(), BlockTest\testBlock(), BlockUiTest\testBlockAdminUiPage(), DisplayBlockTest\testBlockCategory(), BlockContentCreationTest\testBlockContentCreation(), BlockContentCreationTest\testBlockContentCreationMultipleViewModes(), BlockContentTypeTest\testBlockContentTypeCreation(), BlockContentTypeTest\testBlockContentTypeEditing(), BlockContentCreationTest\testBlockDelete(), AjaxFormCacheTest\testBlockForms(), BlockInvalidRegionTest\testBlockInInvalidRegion(), BlockLanguageCacheTest\testBlockLinks(), BlockUiTest\testBlockPlacementIndicator(), BlockTest\testBlockThemeSelector(), BlockTest\testBlockVisibility(), BlockTest\testBlockVisibilityListedEmpty(), BookTest\testBook(), BookTest\testBookDelete(), BookTest\testBookNavigationBlock(), BookTest\testBookOrdering(), BookTest\testBookOutline(), BooleanFieldTest\testBooleanField(), BooleanFormatterSettingsTest\testBooleanFormatterSettings(), BulkFormTest\testBulkDeletion(), BulkFormTest\testBulkForm(), CachedDataUITest\testCacheData(), StorageTest\testCachedFormStorageValidation(), BlockFormInBlockTest\testCachePerPage(), NodeFormSaveChangedTimeTest\testChangedTimeAfterSaveWithoutChanges(), OptionsWidgetsTest\testCheckBoxes(), FormTest\testCheckboxProcessing(), MissingCheckedRequirementsTest\testCheckRequirements(), LocaleLocaleLookupTest\testCircularDependency(), FormTest\testColorValidation(), CommentFieldsTest\testCommentFieldCreate(), CommentFieldsTest\testCommentInstallAfterContentModule(), CommentLanguageTest\testCommentLanguage(), CommentPreviewTest\testCommentPreview(), CommentPreviewTest\testCommentPreviewDuplicateSubmission(), CommentTypeTest\testCommentTypeCreation(), CommentTypeTest\testCommentTypeDeletion(), CommentTypeTest\testCommentTypeEditing(), WizardTest\testCommentWizard(), QuickEditLoadingTest\testConcurrentEdit(), BlockContentCreationTest\testConfigDependencies(), ConditionFormTest\testConfigForm(), LanguageNegotiationInfoTest\testConfigLangTypeAlterations(), LocaleImportFunctionalTest\testConfigPoFile(), LocaleConfigTranslationTest\testConfigTranslation(), LocaleConfigTranslationImportTest\testConfigTranslationImport(), LocaleConfigTranslationImportTest\testConfigTranslationModuleInstall(), ConfigTranslationUiTest\testContactConfigEntityTranslation(), ContactLanguageTest\testContactLanguage(), LanguageUILanguageNegotiationTest\testContentCustomization(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), LocaleContentTest\testContentTypeDirLang(), LocaleContentTest\testContentTypeLanguageConfiguration(), ContentTranslationEntityBundleUITest\testContentTypeUI(), BlockUiTest\testContextAwareBlocks(), BrowserTest\testCookies(), UserPictureTest\testCreateDeletePicture(), UserRolesAssignmentTest\testCreateUserWithRole(), ConfigEntityStatusUITest\testCRUD(), ConfigEntityTest\testCRUDUI(), CustomBooleanTest\testCustomOption(), CustomBooleanTest\testCustomOptionTemplate(), ValidationTest\testCustomRequiredError(), DateTimeFieldTest\testDateField(), DateTimeTest\testDateFormatConfiguration(), DateFormatsMachineNameTest\testDateFormatsMachineNameAllowedValues(), ConfigTranslationUiTest\testDateFormatTranslation(), DrupalDateTimeTest\testDateTimezone(), DbLogTest\testDBLogAddAndClear(), BlockContentCreationTest\testDefaultBlockContentCreation(), ImageFieldDefaultImagesTest\testDefaultImages(), PathLanguageUiTest\testDefaultLanguageUrl(), MenuLinkReorderTest\testDefaultMenuLinkReorder(), ElementsVerticalTabsTest\testDefaultTabCleaned(), FilterDefaultFormatTest\testDefaultTextFormats(), ManageFieldsTest\testDefaultValue(), ViewEditTest\testDeleteLink(), DisplayPathTest\testDeleteWithNoPath(), StorageTest\testDetails(), UserAccountLinksTest\testDisabledAccountLink(), FormTest\testDisabledElements(), DisplayTest\testDisableDisplay(), ValidationTest\testDisabledToken(), FilterSecurityTest\testDisableFilterModule(), LanguageUILanguageNegotiationTest\testDisableLanguageSwitcher(), ManageFieldsTest\testDisallowedFieldNames(), DisplayExtenderUITest\testDisplayExtenderUI(), NodeRevisionsUiBypassAccessTest\testDisplayRevisionTab(), LanguageUrlRewritingTest\testDomainNameNegotiationPort(), FrontPageTest\testDrupalFrontPage(), SaveUploadTest\testDrupalMovingUploadedFileError(), DisplayCRUDTest\testDuplicateDisplay(), ManageFieldsTest\testDuplicateFieldName(), PathAliasTest\testDuplicateNodeAlias(), DuplicateTest\testDuplicateView(), ImageAdminStylesTest\testEditEffect(), ViewEditTest\testEditFormLanguageOptions(), SettingsTest\testEditUI(), EmailFieldTest\testEmailField(), SearchEmbedFormTest\testEmbeddedForm(), BookTest\testEmptyBook(), LocaleImportFunctionalTest\testEmptyMsgstr(), ContentTranslationEnableTest\testEnable(), LocaleUpdateTest\testEnableCustomLanguage(), LocaleUpdateTest\testEnableLanguage(), DependencyTest\testEnableRequirementsFailureDependency(), LocaleUpdateTest\testEnableUninstallModule(), DependencyTest\testEnableWithoutDependency(), LocaleTranslationUiTest\testEnglishTranslation(), ConfigImportUITest\testEntityBundleDelete(), EntityTranslationFormTest\testEntityFormLanguage(), EntityDisplayModeTest\testEntityFormModeUI(), EntityReferenceFieldDefaultValueTest\testEntityReferenceDefaultConfigValue(), EntityReferenceFieldDefaultValueTest\testEntityReferenceDefaultValue(), EntityReferenceFieldTranslatedReferenceViewTest\testEntityReferenceDisplay(), EntityReferenceXSSTest\testEntityReferenceXSS(), EntityDisplayModeTest\testEntityViewModeUI(), SearchExactTest\testExactQuery(), SaveUploadTest\testExistingError(), CKEditorAdminTest\testExistingFormat(), SaveUploadTest\testExistingRename(), SaveUploadTest\testExistingReplace(), ConfigExportUITest\testExport(), LocaleExportTest\testExportTranslation(), LocaleExportTest\testExportTranslationTemplateFile(), ExposedFormUITest\testExposedAdminUi(), TaxonomyIndexTidUiTest\testExposedFilter(), ConfigImportUITest\testExtensionValidation(), ManageFieldsTest\testExternalDestinations(), ToolbarAdminMenuTest\testExternalLink(), UninstallTest\testFailedInstallStatus(), EntityReferenceAdminTest\testFieldAdminHandler(), StyleSerializerTest\testFieldapiField(), FieldUITest\testFieldLabel(), ManageFieldsTest\testFieldPrefix(), StyleSerializerTest\testFieldRawOutput(), ContentTranslationSettingsTest\testFieldTranslatableSettingsUI(), FieldUITest\testFieldUI(), FieldUIRouteTest\testFieldUIRoutes(), ConfigTest\testFileConfigurationPage(), LocaleFileSystemFormTest\testFileConfigurationPage(), FileFieldRSSContentTest\testFileFieldRSSContent(), FileListingTest\testFileListingPages(), EntityReferenceFileUploadTest\testFileUpload(), DbLogTest\testFilter(), FilterAdminTest\testFilterAdmin(), FilterBooleanWebTest\testFilterBooleanUI(), FilterHooksTest\testFilterHooks(), FilterUITest\testFilterInOperatorUi(), FilterNumericWebTest\testFilterNumericUI(), FilterUITest\testFiltersUI(), ImageStyleFlushTest\testFlush(), ImageAdminStylesTest\testFlushUserInterface(), StorageTest\testForm(), FilterAdminTest\testFormatAdmin(), ManageDisplayTest\testFormatterUI(), FilterFormatAccessTest\testFormatWidgetPermissions(), StorageTest\testFormCached(), ElementTest\testFormElementErrors(), EmailTest\testFormEmail(), SearchAdvancedSearchFormTest\testFormRefill(), ResponseTest\testFormResponse(), StateValuesCleanTest\testFormStateValuesClean(), StateValuesCleanAdvancedTest\testFormStateValuesCleanAdvanced(), ConfigFormOverrideTest\testFormsWithOverrides(), ConfigEntityFormOverrideTest\testFormsWithOverrides(), UrlTest\testFormUrl(), LanguageNegotiationFormOverrideTest\testFormWithOverride(), ForumTest\testForum(), ForumIndexTest\testForumIndexStatus(), ForumNodeAccessTest\testForumNodeAccess(), ForumUninstallTest\testForumUninstallWithField(), ForumTest\testForumWithNewPost(), BrowserTest\testGetAbsoluteUrl(), GroupByTest\testGroupBySave(), SaveUploadTest\testHandleDangerousFile(), SaveUploadTest\testHandleExtension(), SaveUploadTest\testHandleFileMunge(), FilterPermissionUiTest\testHandlerUI(), FieldUITest\testHandlerUI(), FieldUITest\testHandlerUIAggregation(), ManageFieldsTest\testHelpDescriptions(), LanguageSelectElementTest\testHiddenLanguageSelectElement(), BlockTest\testHideBlockTitle(), MenuLinkTest\testHierarchicalMenuLinkVisibility(), HookRequirementsTest\testHookRequirementsFailure(), CKEditorToolbarButtonTest\testImageButtonDisplay(), QuickEditLoadingTest\testImageField(), ContentTranslationSyncImageTest\testImageFieldSync(), FilterHtmlImageSecureTest\testImageSource(), StorageTest\testImmutableForm(), OptionsFloatFieldImportTest\testImport(), ConfigSingleImportExportTest\testImport(), ConfigImportUploadTest\testImport(), FieldImportDeleteUninstallUiTest\testImportDeleteUninstall(), ConfigImportUITest\testImportErrorLog(), ConfigImportUITest\testImportLock(), ConfigSingleImportExportTest\testImportSimpleConfiguration(), ConfigImportUITest\testImportValidation(), LanguageNegotiationInfoTest\testInfoAlterations(), FormTest\testInputForgery(), FormTest\testInputWithInvalidToken(), InstallationProfileModuleTestsTest\testInstallationProfileTests(), ConfigImportInstallProfileTest\testInstallProfileValidation(), SimpleTestBrowserTest\testInternalBrowser(), IpAddressBlockingTest\testIPAddressValidation(), ItemsPerPageTest\testItemsPerPage(), LanguageSwitchingTest\testLanguageBlock(), BlockLanguageTest\testLanguageBlockVisibility(), BlockLanguageTest\testLanguageBlockVisibilityLanguageDelete(), LanguageSwitchingTest\testLanguageBodyClass(), LanguageConfigurationTest\testLanguageConfiguration(), LanguageCustomLanguageConfigurationTest\testLanguageConfiguration(), LanguageConfigurationElementTest\testLanguageConfigurationElement(), LanguageConfigurationTest\testLanguageConfigurationWeight(), LanguageUILanguageNegotiationTest\testLanguageDomain(), NodeTypeInitialLanguageTest\testLanguageFieldVisibility(), LanguageSwitchingTest\testLanguageLinkActiveClass(), LanguageListTest\testLanguageList(), PathLanguageUiTest\testLanguageNeutralUrl(), LanguageSwitchingTest\testLanguageSessionSwitchLinks(), LanguageSelectorTranslatableTest\testLanguageStringSelector(), DisplayTest\testLinkDisplay(), LinkFieldTest\testLinkFormatter(), LinkFieldTest\testLinkSeparateFormatter(), LinkFieldTest\testLinkTitle(), BlockContentListViewsTest\testListing(), BlockContentListTest\testListing(), ConfigEntityListMultilingualTest\testListUI(), ConfigEntityListTest\testListUI(), ConfigTranslationUiTest\testLocaleDBStorage(), LocaleConfigTranslationImportTest\testLocaleRemovalAndConfigOverrideDelete(), LocaleConfigTranslationImportTest\testLocaleRemovalAndConfigOverridePreserve(), LocaleJavascriptTranslationTest\testLocaleTranslationJsDependencies(), ToolbarAdminMenuTest\testLocaleTranslationSubtreesHashCacheClear(), UserLanguageCreationTest\testLocalUserCreation(), UserLoginTest\testLoginCacheTagsAndDestination(), ColorTest\testLogoSettingOverride(), LocaleContentTest\testMachineNameLTR(), BlockUiTest\testMachineNameSuggestion(), MainContentFallbackTest\testMainContentFallback(), FileManagedFileElementTest\testManagedFile(), FileManagedFileElementTest\testManagedFileRemoved(), UserCancelTest\testMassUserCancelByAdmin(), MenuLanguageTest\testMenuLanguage(), MenuLinkContentDeleteFormTest\testMenuLinkContentDeleteForm(), MenuLinkContentFormTest\testMenuLinkContentForm(), MenuLinkContentFormTest\testMenuLinkContentFormValidation(), ToolbarAdminMenuTest\testMenuLinkUpdateSubtreesHashCacheClear(), DisplayPathTest\testMenuOptions(), MenuTest\testMenuQueryAndFragment(), BrokenSetUpTest\testMethod(), DependencyTest\testModuleEnableOrder(), LanguageListModuleInstallTest\testModuleInstallLanguageList(), ToolbarAdminMenuTest\testModuleStatusChangeSubtreesHashCacheClear(), NodeFieldMultilingualTest\testMultilingualNodeForm(), SearchMultilingualEntityTest\testMultilingualSearch(), SearchMultilingualTest\testMultilingualSearchFilter(), ElementsTableSelectTest\testMultipleFalseSubmit(), BlockLanguageTest\testMultipleLanguageTypes(), SearchConfigSettingsFormTest\testMultipleSearchPages(), ElementsTableSelectTest\testMultipleTrueSubmit(), MultiStepNodeFormBasicOptionsTest\testMultiStepNodeFormBasicOptions(), BookTest\testNavigationBlockOnAccessModuleInstalled(), NestedFormTest\testNestedFieldForm(), CKEditorAdminTest\testNewFormat(), NewViewConfigSchemaTest\testNewViews(), TriggeringElementTest\testNoButtonInfoInPost(), NodeAccessFieldTest\testNodeAccessAdministerField(), NodeAccessBaseTableTest\testNodeAccessBasic(), NodeAccessMenuLinkTest\testNodeAccessMenuLink(), NodeAccessRebuildTest\testNodeAccessRebuild(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNoAccessModules(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNodeGrants(), PathAliasTest\testNodeAlias(), BulkFormAccessTest\testNodeDeleteAccess(), FileFieldDisplayTest\testNodeDisplay(), OptionsFieldUITest\testNodeDisplay(), NodeEditFormTest\testNodeEdit(), BulkFormAccessTest\testNodeEditAccess(), NodeFormButtonsTest\testNodeFormButtons(), NodeRevisionsUiTest\testNodeFormSaveWithoutRevision(), TermTest\testNodeTermCreationAndDeletion(), NodeTitleXSSTest\testNodeTitleXSS(), SearchAdvancedSearchFormTest\testNodeType(), NodeTypeTest\testNodeTypeCreation(), LanguageConfigurationElementTest\testNodeTypeDelete(), NodeTypeTest\testNodeTypeDeletion(), NodeTypeInitialLanguageTest\testNodeTypeInitialLanguageDefaults(), NodeTypeTranslationTest\testNodeTypeTitleLabelTranslation(), NodeTypeTranslationTest\testNodeTypeTranslation(), LanguageConfigurationElementTest\testNodeTypeUpdate(), NodeEntityViewModeAlterTest\testNodeViewModeChange(), ToolbarAdminMenuTest\testNonCurrentUserAccountUpdates(), PathLanguageUiTest\testNonDefaultUrl(), SaveUploadTest\testNormal(), UserAdminTest\testNotificationEmailAddress(), SaveUploadTest\testNoUpload(), FormTest\testNumber(), NumberFieldTest\testNumberDecimalField(), NumberFieldTest\testNumberFloatField(), NumberFieldTest\testNumberFormatter(), NumberFieldTest\testNumberIntegerField(), SearchNumberMatchingTest\testNumberSearching(), SearchNumbersTest\testNumberSearching(), NumericFormatPluralTest\testNumericFormatPlural(), ImageAdminStylesTest\testNumericStyleName(), FormObjectTest\testObjectFormCallback(), LocaleConfigTranslationTest\testOptionalConfiguration(), ViewEditTest\testOtherOptions(), ColorTest\testOverrideAndResetScheme(), OverrideDisplaysTest\testOverrideDisplays(), DisplayPageWebTest\testPageDisplayMenu(), PageEditTest\testPageEdit(), NodePostSettingsTest\testPagePostInfo(), PagePreviewTest\testPagePreview(), PagePreviewTest\testPagePreviewWithRevisions(), PagerTest\testPagerConfigTranslation(), PathAliasTest\testPathCache(), PathAdminTest\testPathFiltering(), LocalePathTest\testPathLanguageConfiguration(), ValidationTest\testPatternValidation(), ContactPersonalTest\testPersonalContactAccess(), SearchNodePunctuationTest\testPhraseSearchPunctuation(), SearchNodeDiacriticsTest\testPhraseSearchPunctuation(), UserPictureTest\testPictureOnNodeComment(), ConfigTranslationUiTest\testPluralConfigStrings(), ConfigTranslationUiTest\testPluralConfigStringsSourceElements(), LocalePluralFormatTest\testPluralEditDateFormatter(), LocalePluralFormatTest\testPluralEditExport(), ConfigInstallWebTest\testPreExistingConfigInstall(), SearchPreprocessLangcodeTest\testPreprocessLangcode(), SearchPreprocessLangcodeTest\testPreprocessStemming(), RebuildTest\testPreserveFormActionAfterAJAX(), PreviewTest\testPreviewAdditionalInfo(), PreviewTest\testPreviewContextual(), PreviewTest\testPreviewError(), PreviewTest\testPreviewUI(), PrivateFileOnTranslatedEntityTest\testPrivateLanguageFile(), DependencyTest\testProjectNamespaceForDependencies(), NodeTranslationUITest\testPublishedStatusNoFields(), SearchQueryAlterTest\testQueryAlter(), QueryTest\testQueryUI(), OptionsWidgetsTest\testRadioButtons(), FormTest\testRange(), RearrangeFieldsTest\testRearrangeFields(), FormStoragePageCacheTest\testRebuildFormStorageOnCachedPage(), RebuildTest\testRebuildPreservesValues(), NodeBlockFunctionalTest\testRecentNodeBlock(), RedirectTest\testRedirect(), RedirectTest\testRedirectFromErrorPages(), reEnableModuleFieldTest\testReEnabledField(), UserRegistrationTest\testRegistrationWithUserFields(), ViewEditTest\testRelationRepresentativeNode(), HandlerTest\testRelationshipUI(), DisplayCRUDTest\testRemoveDisplay(), DisplayTest\testReorderDisplay(), FileFieldValidateTest\testRequired(), ImageFieldValidateTest\testRequiredAttributes(), FormTest\testRequiredCheckboxesRadio(), FormTest\testRequiredTextfieldNoTitle(), TermTest\testReSavingTags(), StyleSerializerTest\testResponseFormatConfiguration(), ResponsiveImageAdminUITest\testResponsiveImageAdmin(), ResponsiveImageFieldUiTest\testResponsiveImageFormatterUI(), OverrideDisplaysTest\testRevertAllDisplays(), NodeRevisionsAllTest\testRevisions(), NodeRevisionsTest\testRevisions(), UserRoleAdminTest\testRoleAdministration(), UserRoleAdminTest\testRoleWeightOrdering(), RowUITest\testRowUI(), BlockContentTypeTest\testsBlockContentAddTypes(), SearchCommentCountToggleTest\testSearchCommentCountToggle(), SearchNodeUpdateAndDeletionTest\testSearchIndexUpdateOnNodeChange(), SearchNodeUpdateAndDeletionTest\testSearchIndexUpdateOnNodeDeletion(), SearchPageTextTest\testSearchLabelXSS(), SearchConfigSettingsFormTest\testSearchModuleSettingsPage(), SearchCommentTest\testSearchResultsComment(), SearchCommentTest\testSearchResultsCommentAccess(), SearchConfigSettingsFormTest\testSearchSettingsPage(), SearchPageCacheTagsTest\testSearchTagsBubbling(), SearchPageCacheTagsTest\testSearchText(), SearchPageTextTest\testSearchText(), FormTest\testSelect(), OptionsWidgetsTest\testSelectListMultiple(), OptionsWidgetsTest\testSelectListSingle(), StyleSerializerTest\testSerializerViewsUI(), SessionTest\testSessionSaveRegenerate(), SyslogTest\testSettings(), AggregatorAdminTest\testSettingsPage(), ContentTranslationSettingsTest\testSettingsUI(), BlockAdminThemeTest\testSevenAdminTheme(), ShortcutLinksTest\testShortcutLinkAdd(), ShortcutLinksTest\testShortcutLinkChangePath(), ShortcutLinksTest\testShortcutLinkDelete(), ShortcutLinksTest\testShortcutLinkRename(), ShortcutSetsTest\testShortcutSetAdd(), ShortcutSetsTest\testShortcutSetDelete(), ShortcutSetsTest\testShortcutSetEdit(), ShortcutSetsTest\testShortcutSetRename(), ShortcutSetsTest\testShortcutSetSwitchCreate(), ShortcutSetsTest\testShortcutSetSwitchNoSetName(), ShortcutSetsTest\testShortcutSetSwitchOwn(), PagePreviewTest\testSimultaneousPreview(), ConfigTranslationUiTest\testSingleLanguageUI(), FileFieldWidgetTest\testSingleValuedWidget(), ManageDisplayTest\testSingleViewMode(), ConfigTranslationUiTest\testSiteInformationTranslationUi(), SiteMaintenanceTest\testSiteMaintenance(), ConfigLanguageOverrideWebTest\testSiteNameTranslation(), ContactSitewideTest\testSiteWideContact(), SortingTest\testSorting(), ConfigTranslationUiTest\testSourceValueDuplicateSave(), LocaleImportFunctionalTest\testStandalonePoFile(), StatisticsAdminTest\testStatisticsSettings(), PagerTest\testStorePagerSettings(), LocaleTranslationUiTest\testStringSearch(), LocaleTranslationUiTest\testStringTranslation(), LocaleTranslationUiTest\testStringValidation(), ImageAdminStylesTest\testStyle(), ImageAdminStylesTest\testStyleReplacement(), StyleUITest\testStyleUI(), EntityReferenceIntegrationTest\testSupportedEntityTypesAndWidgets(), SystemConfigFormTest\testSystemConfigForm(), MenuTest\testSystemMenuRename(), TaggedWithTest\testTaggedWith(), TaggedWithTest\testTaggedWithByNodeType(), VocabularyUiTest\testTaxonomyAdminChangingWeights(), VocabularyUiTest\testTaxonomyAdminDeletingVocabulary(), TermIndexTest\testTaxonomyIndex(), LegacyTest\testTaxonomyLegacyNode(), TermTest\testTaxonomyNode(), RssTest\testTaxonomyRss(), TermTest\testTaxonomyTermHierarchy(), TokenReplaceTest\testTaxonomyTokenReplacement(), LanguageConfigurationElementTest\testTaxonomyVocabularyUpdate(), TelephoneFieldTest\testTelephoneField(), PathTaxonomyTermTest\testTermAlias(), TermTest\testTermBreadcrumbs(), TaxonomyTermIndentationTest\testTermIndentation(), TermTest\testTermInterface(), TermTest\testTermMultipleParentsInterface(), TermTest\testTermReorder(), SimpleTestBrowserTest\testTestingThroughUI(), ThemeTest\testThemeSettings(), ThemeTest\testThemeSettingsLogo(), PageTitleTest\testTitleTags(), PageTitleTest\testTitleXSS(), ToolbarMenuTranslationTest\testToolbarClasses(), ToolkitSetupFormTest\testToolkitSetupForm(), TrackerTest\testTrackerAdminUnpublish(), TrackerTest\testTrackerCronIndexing(), TrackerTest\testTrackerHistoryMetadata(), TrackerTest\testTrackerOrderingNewComments(), TrackerTest\testTrackerUser(), LocaleTranslateStringTourTest\testTranslateStringTourTips(), MenuLinkContentTranslationUITest\testTranslationLinkTheme(), NodeTranslationUITest\testTranslationLinkTheme(), CommentPagerTest\testTwoPagers(), AreaTest\testUI(), LanguageBrowserDetectionTest\testUIBrowserLanguageMappings(), HandlerTest\testUICRUD(), LocaleTranslationUiTest\testUICustomizedStrings(), StyleSerializerTest\testUIFieldAlias(), LanguageUILanguageNegotiationTest\testUILanguageNegotiation(), DependencyTest\testUninstallDependents(), ThemeTest\testUninstallingThemes(), UninstallTest\testUninstallPage(), UserRegistrationTest\testUniqueFields(), ConfigInstallWebTest\testUnmetDependenciesInstall(), NodeCreationTest\testUnpublishedNodeCreation(), UnsavedPreviewTest\testUnsavedPageDisplayPreview(), LocaleUpdateTest\testUpdateCheckStatus(), LocaleUpdateCronTest\testUpdateCron(), UpdatePathRC1TestBaseFilledTest\testUpdatedSite(), UpdatePathTestBaseFilledTest\testUpdatedSite(), UpdateFeedItemTest\testUpdateFeedItem(), LocaleUpdateTest\testUpdateImportModeNonCustomized(), LocaleUpdateTest\testUpdateImportModeNone(), LocaleUpdateTest\testUpdateImportSourceLocal(), LocaleUpdateTest\testUpdateImportSourceRemote(), UpdateUploadTest\testUploadModule(), UrlAlterFunctionalTest\testUrlAlter(), FilterAdminTest\testUrlFilterAdmin(), LanguageUILanguageNegotiationTest\testUrlLanguageFallback(), UserCreateFailMailTest\testUserAdd(), UserCreateTest\testUserAdd(), UserAdminTest\testUserAdmin(), UserCancelTest\testUserAnonymize(), UserCancelTest\testUserBlock(), UserCancelTest\testUserBlockUnpublish(), UserCancelTest\testUserCancelByAdmin(), UserCancelTest\testUserCancelChangePermission(), UserCancelTest\testUserCancelInvalid(), UserCancelTest\testUserCancelUid1(), UserCancelTest\testUserDelete(), BulkFormAccessTest\testUserDeleteAccess(), UserEditTest\testUserEdit(), BulkFormAccessTest\testUserEditAccess(), UserLanguageTest\testUserLanguageConfiguration(), UserBlocksTest\testUserLoginBlock(), UserPasswordResetTest\testUserPasswordReset(), UserPasswordResetTest\testUserPasswordResetLoggedIn(), UserPermissionsTest\testUserPermissionChanges(), ArbitraryRebuildTest\testUserRegistrationMultipleField(), ArbitraryRebuildTest\testUserRegistrationRebuild(), UserPasswordResetTest\testUserResetPasswordTextboxFilled(), ToolbarAdminMenuTest\testUserRoleUpdateSubtreesHashCacheClear(), UserTimeZoneTest\testUserTimeZone(), UserEditTest\testUserWith0Password(), UserCancelTest\testUserWithoutEmailCancelByAdmin(), UserEditTest\testUserWithoutEmailEdit(), UserRegistrationTest\testUuidFormState(), ValidationTest\testValidate(), FormStoragePageCacheTest\testValidateFormStorageOnCachedPage(), ValidationTest\testValidateLimitErrors(), StorageTest\testValidation(), ColorTest\testValidColor(), ColorConfigSchemaTest\testValidColorConfigSchema(), LanguageConfigSchemaTest\testValidLanguageConfigSchema(), ManageDisplayTest\testViewModeCustom(), DisplayBlockTest\testViewsBlockForm(), ConfigTranslationUiTest\testViewsTranslationUI(), ViewsUITourTest\testViewsUiTourTips(), ViewsUITourTest\testViewsUiTourTipsTranslated(), VocabularyLanguageTest\testVocabularyDefaultLanguageForTerms(), VocabularyUiTest\testVocabularyInterface(), VocabularyTranslationTest\testVocabularyLanguage(), VocabularyLanguageTest\testVocabularyLanguage(), VocabularyPermissionsTest\testVocabularyPermissionsTaxonomyTerm(), SimpleTestTest\testWebTestRunner(), ManageDisplayTest\testWidgetUI(), StyleTableTest\testWizard(), BasicTest\testWizardDefaultValues(), WizardTest\testWizardFieldLength(), OverrideDisplaysTest\testWizardMixedDefaultOverriddenDisplays(), ContactSitewideTest\updateContactForm(), ManageFieldsTest\updateField(), ImageFieldTestBase\uploadNodeImage(), ImportOpmlTest\validateImportFormFields(), and InstallerTranslationMultipleLanguageTest\verifyImportedStringsTranslated().

Here is the call graph for this function:

drupalPostWithFormat (   $path,
  $format,
array  $post,
  $options = [] 
)
protected

Performs a POST HTTP request with a specific format.

Parameters
string | \Drupal\Core\Url$pathDrupal path or absolute path where the request should be POSTed.
string$formatThe request format.
array$postThe POST data. When making a 'application/vnd.drupal-ajax' request, the Ajax page state data should be included. Use getAjaxPageStatePostData() for that.
array$options(optional) Options to be forwarded to the url generator. The 'absolute' option will automatically be enabled.
Returns
string The content returned from the call to curl_exec().
See Also
WebTestBase::drupalPost
WebTestBase::getAjaxPageStatePostData()
WebTestBase::curlExec()

References WebTestBase\drupalPost().

Referenced by ContextualDynamicContextTest\renderContextualLinks(), ConfigTranslationUiTest\renderContextualLinks(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), DisplayBlockTest\testBlockContextualLinks(), DisplayTest\testPageContextualLinks(), EditorSecurityTest\testSwitchingSecurity(), QuickEditLoadingTest\testTitleBaseField(), QuickEditLoadingTest\testUserWithoutPermission(), and QuickEditLoadingTest\testUserWithPermission().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalProcessAjaxResponse (   $content,
array  $ajax_response,
array  $ajax_settings,
array  $drupal_settings 
)
protected

Processes an AJAX response into current content.

This processes the AJAX response as ajax.js does. It uses the response's JSON data, an array of commands, to update $this->content using equivalent DOM manipulation as is used by ajax.js. It does not apply custom AJAX commands though, because emulation is only implemented for the AJAX commands that ship with Drupal core.

Parameters
string$contentThe current HTML content.
array$ajax_responseAn array of AJAX commands.
array$ajax_settingsAn array of AJAX settings which will be used to process the response.
array$drupal_settingsAn array of settings to update the value of drupalSettings for the currently-loaded page.
See Also
drupalPostAjaxForm()
ajax.js

References NestedArray\mergeDeepArray().

Referenced by PreviewTest\clickPreviewLinkAJAX(), and WebTestBase\drupalPostAjaxForm().

Here is the call graph for this function:

Here is the caller graph for this function:

drupalUserIsLoggedIn (   $account)
protected

Returns whether a given user account is logged in.

Parameters
\Drupal\user\UserInterface$accountThe user account object to check.

Referenced by WebTestBase\drupalLogin(), and UserHelpersTest\testDrupalUserIsLoggedIn().

Here is the caller graph for this function:

findBlockInstance ( Block  $block)
protected

Find a block instance on the page.

Parameters
\Drupal\block\Entity\Block$blockThe block entity to find on the page.
Returns
array The result from the xpath query.

Referenced by WebTestBase\assertBlockAppears(), and WebTestBase\assertNoBlockAppears().

Here is the caller graph for this function:

getAbsoluteUrl (   $path)
protected

Takes a path and returns an absolute path.

This method is implemented in the way that browsers work, see https://url.spec.whatwg.org/#relative-state for more information about the possible cases.

Parameters
string$pathA path from the internal browser content.
Returns
string The $path with $base_url prepended, if necessary.

Referenced by WebTestBase\buildUrl(), WebTestBase\checkForMetaRefresh(), WebTestBase\clickLinkHelper(), CommentPagerTest\clickLinkWithXPath(), PreviewTest\clickPreviewLinkAJAX(), WebTestBase\drupalPostForm(), SearchTestBase\submitGetForm(), EntityReferenceAdminTest\testFieldAdminHandler(), BrowserTest\testGetAbsoluteUrl(), PagerTest\testPagerQueryParametersAndCacheContext(), and ConfigInstallWebTest\testPreExistingConfigInstall().

Here is the caller graph for this function:

getAjaxPageStatePostData ( )
protected

Get the Ajax page state from drupalSettings and prepare it for POSTing.

Returns
array The Ajax page state POST data.

Referenced by PreviewTest\clickPreviewLinkAJAX(), WebTestBase\drupalPostAjaxForm(), ViewAjaxTest\testAjaxView(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), QuickEditLoadingTest\testConcurrentEdit(), QuickEditLoadingTest\testCustomPipeline(), QuickEditLoadingTest\testImageField(), QuickEditLoadingTest\testTitleBaseField(), QuickEditLoadingTest\testUserWithoutPermission(), and QuickEditLoadingTest\testUserWithPermission().

Here is the caller graph for this function:

handleForm ( $post,
$edit,
$upload,
  $submit,
  $form 
)
protected

Handles form input related to drupalPostForm().

Ensure that the specified fields exist and attempt to create POST data in the correct manner for the particular field type.

Parameters
$postReference to array of post values.
$editReference to array of edit values to be checked against the form.
$submitForm submit button value.
$formArray of form elements.
Returns
Submit value matches a valid submit input in the form.

Referenced by WebTestBase\drupalPostForm(), and SearchTestBase\submitGetForm().

Here is the caller graph for this function:

initConfig ( ContainerInterface  $container)
protected

Initialize various configurations post-installation.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container.

References FILE_CREATE_DIRECTORY, and file_prepare_directory().

Referenced by UpdatePathTestBase\setUp(), and WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

initKernel ( Request  $request)
protected

Initializes the kernel after installation.

Parameters
\Symfony\Component\HttpFoundation\Request$requestRequest object.
Returns
The container.

References DrupalKernel\createFromRequest().

Referenced by UpdatePathTestBase\setUp(), and WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

initSettings ( )
protected

Initialize settings created during install.

References Settings\initialize().

Referenced by UpdatePathTestBase\setUp(), and WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

initUserSession ( )
protected

Initializes user 1 for the site to be installed.

Referenced by UpdatePathTestBase\setUp(), and WebTestBase\setUp().

Here is the caller graph for this function:

installParameters ( )
protected

Returns the parameters that will be used when Simpletest installs Drupal.

See Also
install_drupal()
install_state_defaults()
Returns
array Array of parameters for use in install_drupal().

References Database\getConnectionInfo().

Referenced by WebTestBase\doInstall(), and InstallerTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

isInChildSite ( )
protected

Returns whether the test is being executed from within a test site.

Mainly used by recursive tests (i.e. to test the testing framework).

Returns
bool TRUE if this test was instantiated in a request within the test site, FALSE otherwise.
See Also
::bootConfiguration()

Referenced by MissingCheckedRequirementsTest\checkRequirements(), MissingCheckedRequirementsTest\testCheckRequirements(), BrokenSetUpTest\testMethod(), and SimpleTestTest\testWebTestRunner().

Here is the caller graph for this function:

prepareRequestForGenerator (   $clean_urls = TRUE,
  $override_server_vars = array() 
)
protected

Creates a mock request and sets it on the generator.

This is used to manipulate how the generator generates paths during tests. It also ensures that calls to $this->drupalGet() will work when running from run-tests.sh because the url generator no longer looks at the global variables that are set there but relies on getting this information from a request object.

Parameters
bool$clean_urlsWhether to mock the request using clean urls.
$override_server_varsAn array of server variables to override.
Returns
$request The mocked request object.

Referenced by ImageStylesPathAndUrlTest\doImageStyleUrlAndPathTests(), WebTestBase\rebuildContainer(), LanguageUrlRewritingTest\testDomainNameNegotiationPort(), and DownloadTest\testFileCreateUrl().

Here is the caller graph for this function:

prepareSettings ( )
protected

Prepares site settings and services before installation.

References TestBase\getConfigSchemaExclusions(), and Settings\initialize().

Referenced by WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

rebuildAll ( )
protected

Reset and rebuild the environment after setup.

References Drupal\request(), and WebTestBase\resetAll().

Referenced by WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

rebuildContainer ( )
protected

Rebuilds ::getContainer().

Use this to update the test process's kernel with a new service container. For example, when the list of enabled modules is changed via the internal browser the test process's kernel has a service container with an out of date module list.

See Also
TestBase::prepareEnvironment()
TestBase::restoreEnvironment()
Todo:
Fix https://www.drupal.org/node/2021959 so that module enable/disable changes are immediately reflected in ::getContainer(). Until then, tests can invoke this workaround when requiring services from newly enabled modules to be immediately available in the same request.

References WebTestBase\prepareRequestForGenerator().

Referenced by ModuleTestBase\assertModules(), NodeTranslationUITest\doUninstallTest(), ViewTestBase\enableViewsTestModule(), WebTestBase\setHttpResponseDebugCacheabilityHeaders(), LanguageNegotiationContentEntityTest\setUp(), TwigTransTest\setUp(), ContentTranslationWorkflowsTest\setupEntity(), PathLanguageTest\testAliasTranslation(), AjaxFormCacheTest\testBlockForms(), CommentFieldsTest\testCommentInstallAfterContentModule(), LanguageConfigOverrideImportTest\testConfigOverrideImport(), LanguageConfigOverrideImportTest\testConfigOverrideImportEvents(), LocaleConfigTranslationTest\testConfigTranslation(), LocaleConfigTranslationImportTest\testConfigTranslationModuleInstall(), LanguageUrlRewritingTest\testDomainNameNegotiationPort(), ViewEditTest\testEditFormLanguageOptions(), LanguageNegotiationContentEntityTest\testEnabledLanguageContentNegotiator(), UpcastingTest\testEntityLanguage(), ConfigImportUITest\testExtensionValidation(), ConfigTest\testFileConfigurationPage(), LocaleFileSystemFormTest\testFileConfigurationPage(), FieldImportDeleteUninstallUiTest\testImportDeleteUninstall(), LanguageNegotiationInfoTest\testInfoAlterations(), ConfigInstallProfileOverrideTest\testInstallProfileConfigOverwrite(), ConfigImportInstallProfileTest\testInstallProfileValidation(), LanguageConfigurationTest\testLanguageConfiguration(), LanguageUILanguageNegotiationTest\testLanguageDomain(), LanguageListTest\testLanguageList(), ToolbarAdminMenuTest\testLanguageSwitching(), MainContentFallbackTest\testMainContentFallback(), LanguageListModuleInstallTest\testModuleInstallLanguageList(), ToolbarAdminMenuTest\testModuleStatusChangeSubtreesHashCacheClear(), NodeAccessAutoBubblingTest\testNodeAccessCacheabilitySafeguard(), LocaleConfigTranslationTest\testOptionalConfiguration(), ConfigInstallWebTest\testPreExistingConfigInstall(), PrivateFileOnTranslatedEntityTest\testPrivateLanguageFile(), NodeTranslationUITest\testTranslationRendering(), TwigSettingsTest\testTwigAutoReloadOverride(), TwigSettingsTest\testTwigCacheOverride(), TwigSettingsTest\testTwigDebugOverride(), TwigSettingsTest\testTwigInlineWithAutoReload(), TwigTransTest\testTwigTransTags(), LanguageUILanguageNegotiationTest\testUILanguageNegotiation(), ConfigInstallWebTest\testUnmetDependenciesInstall(), and UrlAlterFunctionalTest\testUrlAlter().

Here is the call graph for this function:

Here is the caller graph for this function:

refreshVariables ( )
protected

Refreshes in-memory configuration and state information.

Useful after a page request is made that changes configuration or state in a different thread.

In other words calling a settings page with $this->drupalPostForm() with a changed value would update configuration to reflect that change, but in the thread that made the call (thread running the test) the changed values would not be picked up.

This method clears the cache and loads a fresh copy.

References Cache\getBins(), and Drupal\service().

Referenced by WebTestBase\drupalGet(), WebTestBase\drupalHead(), WebTestBase\drupalPostForm(), RESTTestBase\httpRequest(), WebTestBase\resetAll(), LanguageNegotiationInfoTest\stateSet(), SearchExactTest\testExactQuery(), SearchTokenizerTest\testNoTokenizer(), SearchNodeDiacriticsTest\testPhraseSearchPunctuation(), SearchNodePunctuationTest\testPhraseSearchPunctuation(), and SearchTokenizerTest\testTokenizer().

Here is the call graph for this function:

Here is the caller graph for this function:

resetAll ( )
protected

Resets all data structures after having enabled new modules.

This method is called by ::setUp() after enabling the requested modules. It must be called again when additional modules are enabled later.

References Drupal\getContainer(), and WebTestBase\refreshVariables().

Referenced by MenuRouterTest\doTestMenuOnRoute(), ViewTestBase\enableViewsTestModule(), WebTestBase\rebuildAll(), WebTestBase\setHttpResponseDebugCacheabilityHeaders(), ClassLoaderTest\testClassLoading(), ClassLoaderTest\testClassLoadingDisabledModules(), LocaleConfigTranslationImportTest\testConfigTranslationImport(), LocaleConfigTranslationImportTest\testConfigTranslationModuleInstall(), EditorAdminTest\testDisableFormatWithEditor(), ViewEditTest\testEditFormLanguageOptions(), ThemeSuggestionsAlterTest\testExecutionOrder(), CKEditorAdminTest\testExistingFormat(), EntityReferenceAdminTest\testFieldAdminHandler(), FieldHelpTest\testFieldHelp(), EntityViewControllerTest\testFieldItemAttributes(), ThemeSuggestionsAlterTest\testGeneralSuggestionsAlter(), LanguageNegotiationInfoTest\testInfoAlterations(), InstallUninstallTest\testInstallUninstall(), LocaleConfigTranslationImportTest\testLocaleRemovalAndConfigOverrideDelete(), LocaleConfigTranslationImportTest\testLocaleRemovalAndConfigOverridePreserve(), DependencyTest\testModuleEnableOrder(), NodeAccessRebuildNodeGrantsTest\testNodeAccessRebuildNodeGrants(), NodeTypeTest\testNodeTypeDeletion(), PagerTest\testPagerConfigTranslation(), PagerTest\testPagerLocale(), UserLoginTest\testPasswordRehashOnLogin(), PreviewTest\testPreviewAdditionalInfo(), PreviewTest\testPreviewContextual(), SearchPageCacheTagsTest\testSearchTagsBubbling(), AggregatorAdminTest\testSettingsPage(), ThemeSuggestionsAlterTest\testSpecificSuggestionsAlter(), ThemeSuggestionsAlterTest\testSuggestionsAlterInclude(), ThemeSuggestionsAlterTest\testTemplateSuggestionsAlter(), ThemeSuggestionsAlterTest\testThemeFunctionSuggestionsAlter(), TwigTransTest\testTwigTransTags(), LocaleUpdateTest\testUpdateProjects(), and UserCancelTest\testUserDelete().

Here is the call graph for this function:

Here is the caller graph for this function:

restoreBatch ( )
protected

Restore the original batch.

See Also
::setBatch

References batch_get().

Referenced by UpdatePathTestBase\setUp(), and WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

serializePostValues (   $post = array())
protected

Serialize POST HTTP request values.

Encode according to application/x-www-form-urlencoded. Both names and values needs to be urlencoded, according to http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1

Parameters
array$postThe array of values to be POSTed.
Returns
string The serialized result.

Referenced by WebTestBase\drupalPost(), WebTestBase\drupalPostAjaxForm(), and WebTestBase\drupalPostForm().

Here is the caller graph for this function:

setBatch ( )
protected

Preserve the original batch, and instantiate the test batch.

References batch_get().

Referenced by UpdatePathTestBase\setUp(), and WebTestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

setHttpResponseDebugCacheabilityHeaders (   $value = TRUE)
protected

Enables/disables the cacheability headers.

Sets the http.response.debug_cacheability_headers container parameter.

Parameters
bool$value(optional) Whether the debugging cacheability headers should be sent.

References WebTestBase\rebuildContainer(), and WebTestBase\resetAll().

Referenced by RouterTest\testFinishResponseSubscriber(), and PageCacheTest\testPageCacheTagsIndependentFromCacheabilityHeaders().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

Sets up a Drupal site for running functional and integration tests.

Installs Drupal with the installation profile specified in ::$profile into the prefixed database.

Afterwards, installs any additional modules specified in the static ::$modules property of each class in the class hierarchy.

After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.

References WebTestBase\doInstall(), WebTestBase\initConfig(), WebTestBase\initKernel(), WebTestBase\initSettings(), WebTestBase\initUserSession(), WebTestBase\prepareSettings(), WebTestBase\rebuildAll(), Drupal\request(), WebTestBase\restoreBatch(), and WebTestBase\setBatch().

Here is the call graph for this function:

tearDown ( )
protected

Cleans up after testing.

Deletes created files and temporary files directory, deletes the tables created by setUp(), and resets the database prefix.

References WebTestBase\curlClose().

Here is the call graph for this function:

translatePostValues ( array  $values)
protected

Transforms a nested array into a flat array suitable for WebTestBase::drupalPostForm().

Parameters
array$valuesA multi-dimensional form values array to convert.
Returns
array The flattened $edit array suitable for WebTestBase::drupalPostForm().

Referenced by InstallerExistingDatabaseSettingsTest\setUpSettings(), InstallerTestBase\setUpSettings(), and InstallerTestBase\setUpSite().

Here is the caller graph for this function:

verboseEmail (   $count = 1)
protected

Outputs to verbose the most recent $count emails sent.

Parameters
$countOptional number of emails to output.

References WebTestBase\drupalGetMails(), and TestBase\verbose().

Here is the call graph for this function:

writeCustomTranslations ( )
protected

Writes custom translations to the test site's settings.php.

Use TestBase::addCustomTranslations() to queue custom translations before calling this method.

References TestBase\settingsSet().

Referenced by PageTitleTest\testRoutingTitle().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$additionalCurlOptions = array()
protected

Additional cURL options.

itself never sets this but always obeys what is set.

$configDirectories = array()
protected

The config directories used in this test.

$cookieFile = NULL
protected

The current cookie file used by cURL.

We do not reuse the cookies in further runs, so we do not need a file but we still need cookie handling, so we set the jar to NULL.

Referenced by SessionTest\sessionReset().

$generatedTestFiles = FALSE
protected

Whether the files were copied to the test files directory.

$maximumRedirects = 5
protected

The maximum number of redirects to follow when handling responses.

Referenced by SessionHttpsTest\loginHttp(), and SessionHttpsTest\loginHttps().

$redirectCount
protected

The number of redirects followed during the handling of a request.

$sessionId = NULL
protected

The current session ID, if available.

Referenced by WebTestBase\drupalLogin(), and StackSessionHandlerIntegrationTest\testRequest().


The documentation for this class was generated from the following file: