| Drupal | PHP Cross Reference | Content Management Systems |
Description: (no description)
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ModuleTestCase:: (6 methods):
setUp()
assertTableCount()
assertModuleTablesExist()
assertModuleTablesDoNotExist()
assertModules()
assertLogMessage()
EnableDisableTestCase:: (5 methods):
getInfo()
testEnableDisable()
testEntityInfoChanges()
testEntityInfoCacheWatchdog()
assertSuccessfulDisableAndUninstall()
HookRequirementsTestCase:: (2 methods):
getInfo()
testHookRequirementsFailure()
ModuleDependencyTestCase:: (8 methods):
getInfo()
testEnableWithoutDependency()
testMissingModules()
testIncompatibleModuleVersionDependency()
testIncompatibleCoreVersionDependency()
testEnableRequirementsFailureDependency()
testModuleEnableOrder()
testUninstallDependents()
ModuleVersionTestCase:: (3 methods):
getInfo()
setUp()
testModuleVersions()
ModuleRequiredTestCase:: (2 methods):
getInfo()
testDisableRequired()
IPAddressBlockingTestCase:: (3 methods):
getInfo()
setUp()
testIPAddressValidation()
CronRunTestCase:: (6 methods):
getInfo()
setUp()
testCronRun()
testAutomaticCron()
testTempFileCleanup()
testCronExceptions()
AdminMetaTagTestCase:: (2 methods):
getInfo()
testMetaTag()
AccessDeniedTestCase:: (3 methods):
getInfo()
setUp()
testAccessDenied()
PageNotFoundTestCase:: (3 methods):
getInfo()
setUp()
testPageNotFound()
SiteMaintenanceTestCase:: (3 methods):
getInfo()
setUp()
testSiteMaintenance()
DateTimeFunctionalTest:: (6 methods):
getInfo()
setUp()
testTimeZoneHandling()
testDateTypeConfiguration()
testDateFormatConfiguration()
testDateFormatStorage()
PageTitleFiltering:: (5 methods):
getInfo()
setUp()
tearDown()
testTitleTags()
testTitleXSS()
FrontPageTestCase:: (3 methods):
getInfo()
setUp()
testDrupalIsFrontPage()
SystemBlockTestCase:: (3 methods):
getInfo()
setUp()
testSystemBlocks()
SystemMainContentFallback:: (3 methods):
getInfo()
setUp()
testMainContentFallback()
SystemThemeFunctionalTest:: (5 methods):
getInfo()
setUp()
testThemeSettings()
testAdministrationTheme()
testSwitchDefaultTheme()
QueueTestCase:: (3 methods):
getInfo()
testQueue()
queueScore()
TokenReplaceTestCase:: (5 methods):
getInfo()
testTokenReplacement()
testSystemTokenRecognition()
testSystemSiteTokenReplacement()
testSystemDateTokenReplacement()
InfoFileParserTestCase:: (2 methods):
getInfo()
testDrupalParseInfoFormat()
SystemInfoAlterTestCase:: (3 methods):
getInfo()
testSystemInfoAlter()
getSystemInfo()
UpdateScriptFunctionalTest:: (7 methods):
getInfo()
setUp()
testUpdateAccess()
testRequirements()
testThemeSystem()
testNoUpdateFunctionality()
testSuccessfulUpdateFunctionality()
FloodFunctionalTest:: (2 methods):
getInfo()
testCleanUp()
RetrieveFileTestCase:: (2 methods):
getInfo()
testFileRetrieving()
ShutdownFunctionsTest:: (3 methods):
getInfo()
setUp()
testShutdownFunctions()
SystemAdminTestCase:: (4 methods):
getInfo()
setUp()
testAdminPages()
testCompactMode()
SystemAuthorizeCase:: (4 methods):
getInfo()
setUp()
drupalGetAuthorizePHP()
testFileTransferHooks()
SystemIndexPhpTest:: (3 methods):
getInfo()
setUp()
testIndexPhpHandling()
Helper class for module test cases.
| setUp() line: 14 |
| No description |
| assertTableCount($base_table, $count = TRUE) line: 21 |
| Assert there are tables that begin with the specified base table name. param: $base_table param: $count |
| assertModuleTablesExist($module) line: 39 |
| Assert that all tables defined in a module's hook_schema() exist. param: $module |
| assertModuleTablesDoNotExist($module) line: 56 |
| Assert that none of the tables defined in a module's hook_schema() exist. param: $module |
| assertModules(array $modules, $enabled) line: 73 |
| Assert the list of modules are enabled or disabled. param: $modules param: $enabled |
| assertLogMessage($type, $message, $variables = array() line: 94 |
| Verify a log entry was entered for a module's status change. Called in the same way of the expected original watchdog() execution. param: $type param: $message param: $variables param: $severity param: $link |
Test module enabling/disabling functionality.
| getInfo() line: 135 |
| No description |
| testEnableDisable() line: 143 |
| Test that all core modules can be enabled, disabled and uninstalled. |
| testEntityInfoChanges() line: 274 |
| Ensures entity info cache is updated after changes. |
| testEntityInfoCacheWatchdog() line: 295 |
| Tests entity info cache after enabling a module with a dependency on an entity providing module. |
| assertSuccessfulDisableAndUninstall($module) line: 307 |
| Disables and uninstalls a module and asserts that it was done correctly. param: $module |
Tests failure of hook_requirements('install').
| getInfo() line: 355 |
| No description |
| testHookRequirementsFailure() line: 363 |
| Assert that a module cannot be installed if it fails hook_requirements(). |
Test module dependency functionality.
| getInfo() line: 384 |
| No description |
| testEnableWithoutDependency() line: 392 |
| Attempt to enable translation module without locale enabled. |
| testMissingModules() line: 418 |
| Attempt to enable a module with a missing dependency. |
| testIncompatibleModuleVersionDependency() line: 444 |
| Tests enabling a module that depends on an incompatible version of a module. |
| testIncompatibleCoreVersionDependency() line: 459 |
| Tests enabling a module that depends on a module with an incompatible core version. |
| testEnableRequirementsFailureDependency() line: 473 |
| Tests enabling a module that depends on a module which fails hook_requirements(). |
| testModuleEnableOrder() line: 497 |
| Tests that module dependencies are enabled in the correct order via the UI. Dependencies should be enabled before their dependents. |
| testUninstallDependents() line: 526 |
| Tests attempting to uninstall a module that has installed dependents. |
Test module dependency on specific versions.
| getInfo() line: 565 |
| No description |
| setUp() line: 573 |
| No description |
| testModuleVersions() line: 577 |
| Test version dependencies. |
Test required modules functionality.
| getInfo() line: 626 |
| No description |
| testDisableRequired() line: 634 |
| Assert that core required modules cannot be disabled. |
| getInfo() line: 659 |
| Implement getInfo(). |
| setUp() line: 670 |
| Implement setUp(). |
| testIPAddressValidation() line: 681 |
| Test a variety of user input to confirm correct validation and saving of data. |
| getInfo() line: 736 |
| Implement getInfo(). |
| setUp() line: 747 |
| No description |
| testCronRun() line: 751 |
| Test cron runs. |
| testAutomaticCron() line: 772 |
| Ensure that the automatic cron run feature is working. In these tests we do not use REQUEST_TIME to track start time, because we need the exact time when cron is triggered. |
| testTempFileCleanup() line: 809 |
| Ensure that temporary files are removed. Create files for all the possible combinations of age and status. We are using UPDATE statements rather than file_save() because it would set the timestamp. |
| testCronExceptions() line: 856 |
| Make sure exceptions thrown on hook_cron() don't affect other modules. |
| getInfo() line: 871 |
| Implement getInfo(). |
| testMetaTag() line: 882 |
| Verify that the meta tag HTML is generated correctly. |
Tests custom access denied functionality.
| getInfo() line: 899 |
| No description |
| setUp() line: 907 |
| No description |
| testAccessDenied() line: 914 |
| No description |
| getInfo() line: 973 |
| Implement getInfo(). |
| setUp() line: 984 |
| Implement setUp(). |
| testPageNotFound() line: 995 |
| No description |
Tests site maintenance functionality.
| getInfo() line: 1019 |
| No description |
| setUp() line: 1027 |
| No description |
| testSiteMaintenance() line: 1037 |
| Verify site maintenance mode functionality. |
Tests generic date and time handling capabilities of Drupal.
| getInfo() line: 1118 |
| No description |
| setUp() line: 1126 |
| No description |
| testTimeZoneHandling() line: 1135 |
| Test time zones and DST handling. |
| testDateTypeConfiguration() line: 1166 |
| Test date type configuration. |
| testDateFormatConfiguration() line: 1198 |
| Test date format configuration. |
| testDateFormatStorage() line: 1237 |
| Test if the date formats are stored properly. |
| getInfo() line: 1310 |
| Implement getInfo(). |
| setUp() line: 1321 |
| Implement setUp(). |
| tearDown() line: 1332 |
| Reset page title. |
| testTitleTags() line: 1342 |
| Tests the handling of HTML by drupal_set_title() and drupal_get_title() |
| testTitleXSS() line: 1369 |
| Test if the title of the site is XSS proof. |
Test front page functionality and administration.
| getInfo() line: 1415 |
| No description |
| setUp() line: 1423 |
| No description |
| testDrupalIsFrontPage() line: 1435 |
| Test front page functionality. |
| getInfo() line: 1468 |
| No description |
| setUp() line: 1476 |
| No description |
| testSystemBlocks() line: 1484 |
| Test displaying and hiding the powered-by and help blocks. |
Test main content rendering fallback provided by system module.
| getInfo() line: 1538 |
| No description |
| setUp() line: 1546 |
| No description |
| testMainContentFallback() line: 1563 |
| Test availability of main content. |
Tests for the theme interface functionality.
| getInfo() line: 1619 |
| No description |
| setUp() line: 1627 |
| No description |
| testThemeSettings() line: 1635 |
| Test the theme settings form. |
| testAdministrationTheme() line: 1735 |
| Test the administration theme functionality. |
| testSwitchDefaultTheme() line: 1787 |
| Test switching the default theme. |
Test the basic queue functionality.
| getInfo() line: 1813 |
| No description |
| testQueue() line: 1821 |
| Queues and dequeues a set of items to check the basic queue functionality. |
| queueScore($items, $new_items) line: 1884 |
| This function returns the number of equal items in two arrays. |
Test token replacement in strings.
| getInfo() line: 1904 |
| No description |
| testTokenReplacement() line: 1912 |
| Creates a user and a node, then tests the tokens generated from them. |
| testSystemTokenRecognition() line: 1961 |
| Test whether token-replacement works in various contexts. |
| testSystemSiteTokenReplacement() line: 1990 |
| Tests the generation of all system site information tokens. |
| testSystemDateTokenReplacement() line: 2031 |
| Tests the generation of all system date tokens. |
| getInfo() line: 2060 |
| No description |
| testDrupalParseInfoFormat() line: 2068 |
| Test drupal_parse_info_format(). |
Tests the effectiveness of hook_system_info_alter().
| getInfo() line: 2134 |
| No description |
| testSystemInfoAlter() line: 2142 |
| Tests that {system}.info is rebuilt after a module that implements hook_system_info_alter() is enabled. Also tests if core *_list() functions return freshly altered info. |
| getSystemInfo($name, $type) line: 2180 |
| Returns the info array as it is stored in {system}. param: $name param: $type return: |
Tests for the update system functionality.
| getInfo() line: 2204 |
| No description |
| setUp() line: 2212 |
| No description |
| testUpdateAccess() line: 2218 |
| Tests access to the update script. |
| testRequirements() line: 2249 |
| Tests that requirements warnings and errors are correctly displayed. |
| testThemeSystem() line: 2301 |
| Tests the effect of using the update script on the theme system. |
| testNoUpdateFunctionality() line: 2315 |
| Tests update.php when there are no updates to apply. |
| testSuccessfulUpdateFunctionality() line: 2336 |
| Tests update.php after performing a successful update. |
Functional tests for the flood control mechanism.
| getInfo() line: 2370 |
| No description |
| testCleanUp() line: 2378 |
| Test flood control mechanism clean-up. |
Test HTTP file downloading capability.
| getInfo() line: 2408 |
| No description |
| testFileRetrieving() line: 2416 |
| Invokes system_retrieve_file() in several scenarios. |
Functional tests shutdown functions.
| getInfo() line: 2457 |
| No description |
| setUp() line: 2465 |
| No description |
| testShutdownFunctions() line: 2469 |
| Test shutdown functions. |
Tests administrative overview pages.
| getInfo() line: 2489 |
| No description |
| setUp() line: 2497 |
| No description |
| testAdminPages() line: 2512 |
| Tests output on administrative listing pages. |
| testCompactMode() line: 2578 |
| Test compact mode. |
Tests authorize.php and related hooks.
| getInfo() line: 2602 |
| No description |
| setUp() line: 2610 |
| No description |
| drupalGetAuthorizePHP($page_title = 'system-test-auth') line: 2620 |
| Helper function to initialize authorize.php and load it via drupalGet(). Initializing authorize.php needs to happen in the child Drupal installation, not the parent. So, we visit a menu callback provided by system_test.module which calls system_authorized_init() to initialize the $_SESSION inside the test site, not the framework site. This callback redirects to authorize.php when it's done initializing. |
| testFileTransferHooks() line: 2635 |
| Tests the FileTransfer hooks |
Test the handling of requests containing 'index.php'.
| getInfo() line: 2655 |
| No description |
| setUp() line: 2663 |
| No description |
| testIndexPhpHandling() line: 2667 |
| Test index.php handling. |
title