Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 7.x
»
drupal_web_test_case.php
»
DrupalTestCase
»
DrupalTestCase::assertIdentical
Search Drupal 7.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 7.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
146 calls to DrupalTestCase::assertIdentical()
AJAXFrameworkTestCase::testLazyLoad
in drupal/
modules/
simpletest/
tests/
ajax.test
Test that new JavaScript and CSS files added during an AJAX request are returned.
ArrayDiffUnitTest::testArrayDiffAssocRecursive
in drupal/
modules/
simpletest/
tests/
common.test
Tests
drupal_array_diff_assoc_recursive
().
BlockHashTestCase::assertWeight
in drupal/
modules/
block/
block.test
Asserts that the block_test module's block has a given weight.
BookTestCase::checkBookNode
in drupal/
modules/
book/
book.test
Checks the outline of sub-pages; previous, up, and next.
BootstrapDestinationTestCase::testDestination
in drupal/
modules/
simpletest/
tests/
bootstrap.test
Tests that $_GET/$_REQUEST['destination'] only contain internal URLs.
BootstrapGetFilenameTestCase::testDrupalGetFilename
in drupal/
modules/
simpletest/
tests/
bootstrap.test
Test that
drupal_get_filename
() works correctly when the file is not found in the database.
BootstrapGetFilenameWebTestCase::testDrupalGetFilename
in drupal/
modules/
simpletest/
tests/
bootstrap.test
Test that
drupal_get_filename
() works correctly with a full Drupal site.
BootstrapMiscTestCase::testMisc
in drupal/
modules/
simpletest/
tests/
bootstrap.test
Test miscellaneous functions in
bootstrap.inc
.
BootstrapOverrideServerVariablesTestCase::testDrupalOverrideServerVariablesProvidedURL
in drupal/
modules/
simpletest/
tests/
bootstrap.test
Test providing a direct URL to to
drupal_override_server_variables
().
BootstrapVariableTestCase::testVariable
in drupal/
modules/
simpletest/
tests/
bootstrap.test
testVariable
BootstrapVariableTestCase::testVariableDefaults
in drupal/
modules/
simpletest/
tests/
bootstrap.test
Makes sure that the default variable parameter is passed through okay.
CascadingStylesheetsTestCase::testRenderOrder
in drupal/
modules/
simpletest/
tests/
common.test
Test CSS ordering.
CommentPagerTest::assertCommentOrder
in drupal/
modules/
comment/
comment.test
Helper function: assert that the comments are displayed in the correct order.
CommentPagerTest::testCommentNewPageIndicator
in drupal/
modules/
comment/
comment.test
Test
comment_new_page_count
().
CommonXssUnitTest::testBadProtocolStripping
in drupal/
modules/
simpletest/
tests/
common.test
Check that harmful protocols are stripped.
ConnectionUnitTest::addConnection
in drupal/
modules/
simpletest/
tests/
database_test.test
Adds a new database connection info to Database.
ContactPersonalTestCase::testPersonalContactFlood
in drupal/
modules/
contact/
contact.test
Tests the personal contact form flood protection.
ContactSitewideTestCase::testSiteWideContact
in drupal/
modules/
contact/
contact.test
Tests configuration options and the site-wide contact form.
DatabaseBasicSyntaxTestCase::testBasicConcat
in drupal/
modules/
simpletest/
tests/
database_test.test
Test for string concatenation.
DatabaseBasicSyntaxTestCase::testFieldConcat
in drupal/
modules/
simpletest/
tests/
database_test.test
Test for string concatenation with field values.
DatabaseBasicSyntaxTestCase::testLikeBackslash
in drupal/
modules/
simpletest/
tests/
database_test.test
Test LIKE query containing a backslash.
DatabaseBasicSyntaxTestCase::testLikeEscape
in drupal/
modules/
simpletest/
tests/
database_test.test
Test escaping of LIKE wildcards.
DatabaseCaseSensitivityTestCase::testCaseSensitiveInsert
in drupal/
modules/
simpletest/
tests/
database_test.test
Test BINARY collation in MySQL.
DatabaseConnectionTestCase::testConnectionOptions
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests the connection options of the active database.
DatabaseConnectionTestCase::testConnectionRouting
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that connections return appropriate connection objects.
DatabaseConnectionTestCase::testConnectionRoutingOverride
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that connections return appropriate connection objects.
DatabaseDeleteTruncateTestCase::testSimpleDelete
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can delete a single record successfully.
DatabaseFetch2TestCase::testQueryFetchBoth
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can fetch a record into a doubly-keyed array explicitly.
DatabaseFetch2TestCase::testQueryFetchCol
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can fetch an entire column of a result set at once.
DatabaseFetch2TestCase::testQueryFetchNum
in drupal/
modules/
simpletest/
tests/
database_test.test
DatabaseFetchTestCase::testQueryFetchArray
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can fetch a record to an array associative explicitly.
DatabaseFetchTestCase::testQueryFetchClass
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can fetch a record into a new instance of a custom class.
DatabaseFetchTestCase::testQueryFetchDefault
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can fetch a record properly in default object mode.
DatabaseFetchTestCase::testQueryFetchObject
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can fetch a record to an object explicitly.
DatabaseInsertDefaultsTestCase::testDefaultEmptyInsert
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that no action will be preformed if no fields are specified.
DatabaseInsertTestCase::testInsertFieldOnlyDefinintion
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that we can specify fields without values and specify values later.
DatabaseInsertTestCase::testInsertLastInsertID
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that inserts return the proper auto-increment ID.
DatabaseInsertTestCase::testInsertSelectAll
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests that the INSERT INTO ... SELECT * ... syntax works.
DatabaseInsertTestCase::testInsertSelectFields
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that the INSERT INTO ... SELECT (fields) ... syntax works.
DatabaseInsertTestCase::testMultiInsert
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that we can insert multiple records in one query object.
DatabaseInsertTestCase::testRepeatedInsert
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that an insert object can be reused with new data after it executes.
DatabaseInsertTestCase::testSimpleInsert
in drupal/
modules/
simpletest/
tests/
database_test.test
Test the very basic insert functionality.
DatabaseRegressionTestCase::testDBFieldExists
in drupal/
modules/
simpletest/
tests/
database_test.test
Test the
db_field_exists
() function.
DatabaseRegressionTestCase::testDBIndexExists
in drupal/
modules/
simpletest/
tests/
database_test.test
Test the
db_index_exists
() function.
DatabaseRegressionTestCase::testDBTableExists
in drupal/
modules/
simpletest/
tests/
database_test.test
Test the
db_table_exists
() function.
DatabaseRegressionTestCase::testRegression_310447
in drupal/
modules/
simpletest/
tests/
database_test.test
Regression test for #310447.
DatabaseTransactionTestCase::testCommittedTransaction
in drupal/
modules/
simpletest/
tests/
database_test.test
Test committed transaction.
DatabaseTransactionTestCase::testTransactionRollBackNotSupported
in drupal/
modules/
simpletest/
tests/
database_test.test
Test transaction rollback on a database that does not support transactions.
DatabaseUpdateComplexTestCase::testBetweenConditionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Test BETWEEN conditional clauses.
DatabaseUpdateComplexTestCase::testInConditionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Test WHERE IN clauses.
DatabaseUpdateComplexTestCase::testLikeConditionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Test LIKE conditionals.
DatabaseUpdateComplexTestCase::testNotInConditionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Test WHERE NOT IN clauses.
DatabaseUpdateComplexTestCase::testOrConditionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Test updates with OR conditionals.
DatabaseUpdateComplexTestCase::testUpdateExpression
in drupal/
modules/
simpletest/
tests/
database_test.test
Test update with expression values.
DatabaseUpdateComplexTestCase::testUpdateOnlyExpression
in drupal/
modules/
simpletest/
tests/
database_test.test
Test update with only expression values.
DatabaseUpdateTestCase::testExpressionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Test updating with expressions.
DatabaseUpdateTestCase::testMultiGTUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can update a multiple records with a non-equality condition.
DatabaseUpdateTestCase::testMultiUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can update a multiple records successfully.
DatabaseUpdateTestCase::testPrimaryKeyUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can update the primary key of a record successfully.
DatabaseUpdateTestCase::testSimpleNullUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm updating to NULL.
DatabaseUpdateTestCase::testSimpleUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can update a single record successfully.
DatabaseUpdateTestCase::testWhereAndConditionUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can stack condition and where calls.
DatabaseUpdateTestCase::testWhereUpdate
in drupal/
modules/
simpletest/
tests/
database_test.test
Confirm that we can update a multiple records with a where call.
DrupalAttributesUnitTest::testDrupalAttributes
in drupal/
modules/
simpletest/
tests/
common.test
Tests that
drupal_html_class
() cleans the class name properly.
DrupalDataApiTest::testDrupalWriteRecord
in drupal/
modules/
simpletest/
tests/
common.test
Test the
drupal_write_record
() API function.
DrupalHTMLIdentifierTestCase::testDrupalCleanCSSIdentifier
in drupal/
modules/
simpletest/
tests/
common.test
Tests that
drupal_clean_css_identifier
() cleans the identifier properly.
DrupalHTMLIdentifierTestCase::testDrupalHTMLClass
in drupal/
modules/
simpletest/
tests/
common.test
Tests that
drupal_html_class
() cleans the class name properly.
DrupalHTMLIdentifierTestCase::testDrupalHTMLId
in drupal/
modules/
simpletest/
tests/
common.test
Tests that
drupal_html_id
() cleans the ID properly.
DrupalHTTPResponseStatusLineTest::testStatusLine
in drupal/
modules/
simpletest/
tests/
common.test
Tests parsing HTTP response status line.
DrupalJSONTest::testJSON
in drupal/
modules/
simpletest/
tests/
common.test
Tests converting PHP variables to JSON strings and back.
DrupalMatchPathTestCase::testDrupalMatchPath
in drupal/
modules/
simpletest/
tests/
path.test
Run through our test cases, making sure each one works as expected.
DrupalRenderTestCase::testDrupalRenderBasics
in drupal/
modules/
simpletest/
tests/
common.test
Tests the output
drupal_render
() for some elementary input values.
DrupalWebTestCase::assertThemeOutput
in drupal/
modules/
simpletest/
drupal_web_test_case.php
Asserts themed output.
DrupalWebTestCase::drupalPostAJAX
in drupal/
modules/
simpletest/
drupal_web_test_case.php
Execute an Ajax submission.
EntityFieldQueryTestCase::testEntityFieldQueryRouting
in drupal/
modules/
simpletest/
tests/
entity_query.test
Tests the routing feature of EntityFieldQuery.
EntityLoadTestCase::testEntityLoadConditions
in drupal/
modules/
simpletest/
tests/
entity_crud.test
Tests the functionality for loading entities matching certain conditions.
FieldAttachOtherTestCase::testFieldAttachSubmit
in drupal/
modules/
field/
tests/
field.test
Test
field_attach_submit
().
FieldAttachOtherTestCase::testFieldAttachValidate
in drupal/
modules/
field/
tests/
field.test
Test
field_attach_validate
().
FieldAttachStorageTestCase::testFieldAttachCreateRenameBundle
in drupal/
modules/
field/
tests/
field.test
Test
field_attach_create_bundle
() and
field_attach_rename_bundle
().
FieldAttachStorageTestCase::testFieldAttachDelete
in drupal/
modules/
field/
tests/
field.test
Test
field_attach_delete
().
FieldCrudTestCase::testCreateField
in drupal/
modules/
field/
tests/
field.test
Test the creation of a field.
FieldCrudTestCase::testDeleteField
in drupal/
modules/
field/
tests/
field.test
Test the deletion of a field.
FieldFormTestCase::testFieldFormSingle
in drupal/
modules/
field/
tests/
field.test
FieldFormTestCase::testFieldFormUnlimited
in drupal/
modules/
field/
tests/
field.test
FieldInfoTestCase::testFieldInfo
in drupal/
modules/
field/
tests/
field.test
Test that field types and field definitions are correcly cached.
FieldInfoTestCase::testFieldPrepare
in drupal/
modules/
field/
tests/
field.test
Test that cached field definitions are ready for current runtime context.
FieldInfoTestCase::testInstancePrepare
in drupal/
modules/
field/
tests/
field.test
Test that cached instance definitions are ready for current runtime context.
FieldInfoTestCase::testSettingsInfo
in drupal/
modules/
field/
tests/
field.test
Test that the field_info settings convenience functions work.
FieldInstanceCrudTestCase::testCreateFieldInstance
in drupal/
modules/
field/
tests/
field.test
Test the creation of a field instance.
FieldInstanceCrudTestCase::testUpdateFieldInstance
in drupal/
modules/
field/
tests/
field.test
Test the update of a field instance.
FileDeleteTest::testUnused
in drupal/
modules/
simpletest/
tests/
file.test
Tries deleting a normal file (as opposed to a directory, symlink, etc).
FileFieldWidgetTestCase::testMultiValuedWidget
in drupal/
modules/
file/
tests/
file.test
Tests upload and remove buttons for multiple multi-valued File fields.
FileMimeTypeTest::testFileMimeTypeDetection
in drupal/
modules/
simpletest/
tests/
file.test
Test mapping of mimetypes from filenames.
FileNameMungingTest::testMungeIgnoreInsecure
in drupal/
modules/
simpletest/
tests/
file.test
If the allow_insecure_uploads variable evaluates to true, the file should come out untouched, no matter how evil the filename.
FileNameMungingTest::testMungeIgnoreWhitelisted
in drupal/
modules/
simpletest/
tests/
file.test
White listed extensions are ignored by
file_munge_filename
().
FileNameMungingTest::testUnMunge
in drupal/
modules/
simpletest/
tests/
file.test
Ensure that unmunge gets your name back.
FileUsageTest::testRemoveUsage
in drupal/
modules/
simpletest/
tests/
file.test
Tests
file_usage_delete
().
FilterUnitTestCase::testUrlFilterContent
in drupal/
modules/
filter/
filter.test
Tests URL filter on longer content.
FormatDateUnitTest::testAdminDefinedFormatDate
in drupal/
modules/
simpletest/
tests/
common.test
Test admin-defined formats in
format_date
().
FormatDateUnitTest::testFormatDate
in drupal/
modules/
simpletest/
tests/
common.test
Tests for the
format_date
() function.
FormCheckboxTestCase::testFormCheckbox
in drupal/
modules/
simpletest/
tests/
form.test
FormElementTestCase::testOptions
in drupal/
modules/
simpletest/
tests/
form.test
Tests expansion of #options for #type checkboxes and radios.
FormsTestCase::assertFormValuesDefault
in drupal/
modules/
simpletest/
tests/
form.test
Assert that the values submitted to a form matches the default values of the elements.
FormsTestCase::checkFormValue
in drupal/
modules/
simpletest/
tests/
form.test
Checks that a given form input value is sanitized to the expected result.
FormsTestCase::testSelect
in drupal/
modules/
simpletest/
tests/
form.test
Tests validation of #type 'select' elements.
FormTextareaTestCase::testValueCallback
in drupal/
modules/
simpletest/
tests/
form.test
Tests that textarea value is properly set.
ImageStylesPathAndUrlTestCase::_testImageStyleUrlAndPath
in drupal/
modules/
image/
image.test
Test
image_style_url
().
JavaScriptTestCase::testGetLibrary
in drupal/
modules/
simpletest/
tests/
common.test
Tests retrieval of libraries via
drupal_get_library
().
JavaScriptTestCase::testRenderOrder
in drupal/
modules/
simpletest/
tests/
common.test
Test JavaScript ordering.
ListFieldUITestCase::assertAllowedValuesInput
in drupal/
modules/
field/
modules/
list/
tests/
list.test
Tests a string input for the 'allowed values' form element.
LocaleBrowserDetectionTest::testLanguageFromBrowser
in drupal/
modules/
locale/
locale.test
Unit tests for the
locale_language_from_browser
() function.
LocaleImportFunctionalTest::testEmptyMsgstr
in drupal/
modules/
locale/
locale.test
Test empty msgstr at end of .po file see #611786.
LocaleImportFunctionalTest::testLanguageContext
in drupal/
modules/
locale/
locale.test
Test msgctxt context support.
LocaleLanguageSwitchingFunctionalTest::testLanguageBlock
in drupal/
modules/
locale/
locale.test
Functional tests for the language switcher block.
LocaleUpgradePathTestCase::assertPageInLanguage
in drupal/
modules/
simpletest/
tests/
upgrade/
upgrade.locale.test
Asserts that a page exists and is in the specified language.
MenuRouterTestCase::testMenuLoadArgumentsInheritance
in drupal/
modules/
simpletest/
tests/
menu.test
Tests inheritance of 'load arguments'.
ModuleDependencyTestCase::testModuleEnableOrder
in drupal/
modules/
system/
system.test
Tests that module dependencies are enabled in the correct order via the UI. Dependencies should be enabled before their dependents.
ModuleUnitTest::assertModuleList
in drupal/
modules/
simpletest/
tests/
module.test
Assert that
module_list
() return the expected values.
NodeAccessBaseTableTestCase::assertTaxonomyPage
in drupal/
modules/
node/
node.test
Checks taxonomy/term listings to ensure only accessible nodes are listed.
NodeBodyUpgradePathTestCase::testNodeBodyUpgrade
in drupal/
modules/
simpletest/
tests/
upgrade/
upgrade.node.test
Test a successful upgrade.
OpenIDTestCase::testConversion
in drupal/
modules/
openid/
openid.test
Test _openid_dh_XXX_to_XXX() functions.
PageEditTestCase::testPageAuthoredBy
in drupal/
modules/
node/
node.test
Tests changing a node's "authored by" field.
PageEditTestCase::testPageEdit
in drupal/
modules/
node/
node.test
Checks node edit functionality.
PasswordHashingTest::testPasswordHashing
in drupal/
modules/
simpletest/
tests/
password.test
Test password hashing.
PathSaveTest::testDrupalSaveOriginalPath
in drupal/
modules/
simpletest/
tests/
path.test
Tests that
path_save
() makes the original path available to modules.
RdfMappingHookTestCase::testMapping
in drupal/
modules/
rdf/
rdf.test
Test that
hook_rdf_mapping
() correctly returns and processes mapping.
RenderElementTypesTestCase::assertElements
in drupal/
modules/
simpletest/
tests/
theme.test
Asserts that an array of elements is rendered properly.
SchemaTestCase::testSchema
in drupal/
modules/
simpletest/
tests/
schema.test
SearchSimplifyTestCase::testSearchSimplifyUnicode
in drupal/
modules/
search/
search.test
Tests that all Unicode characters simplify correctly.
SessionTestCase::assertSessionEmpty
in drupal/
modules/
simpletest/
tests/
session.test
Assert whether $_SESSION is empty at the beginning of the request.
StatisticsLoggingTestCase::testLogging
in drupal/
modules/
statistics/
statistics.test
Verifies request logging for cached and uncached pages.
TaxonomyQueryAlterTestCase::assertQueryTagTestResult
in drupal/
modules/
taxonomy/
taxonomy.test
Verifies invocation of the hooks in the test module.
TextSummaryTestCase::callTextSummary
in drupal/
modules/
field/
modules/
text/
text.test
Calls
text_summary
() and asserts that the expected teaser is returned.
TextSummaryTestCase::testOnlyTextSummary
in drupal/
modules/
field/
modules/
text/
text.test
Test sending only summary.
ThemeItemListUnitTest::testItemList
in drupal/
modules/
simpletest/
tests/
theme.test
Test item list rendering.
ThemeLinksTest::testDrupalPreRenderLinks
in drupal/
modules/
simpletest/
tests/
theme.test
Test the use of
drupal_pre_render_links
() on a nested array of links.
ThemeTestCase::testListThemes
in drupal/
modules/
simpletest/
tests/
theme.test
Test the
list_themes
() function.
ThemeTestCase::testRegistryRebuild
in drupal/
modules/
simpletest/
tests/
theme.test
Ensures the theme registry is rebuilt when modules are disabled/enabled.
ThemeTestCase::testThemeGetSetting
in drupal/
modules/
simpletest/
tests/
theme.test
Test the
theme_get_setting
() function.
UploadUpgradePathTestCase::testUploadUpgrade
in drupal/
modules/
simpletest/
tests/
upgrade/
upgrade.upload.test
Test a successful upgrade.
UrlAlterFunctionalTest::assertUrlInboundAlter
in drupal/
modules/
simpletest/
tests/
path.test
Assert that a inbound path is altered to an expected value.
UrlAlterFunctionalTest::assertUrlOutboundAlter
in drupal/
modules/
simpletest/
tests/
path.test
Assert that an outbound path is altered to an expected value.
UrlIsExternalUnitTest::testUrlIsExternal
in drupal/
modules/
simpletest/
tests/
common.test
Tests if each URL is external or not.
UserAuthmapAssignmentTestCase::testAuthmapAssignment
in drupal/
modules/
user/
user.test
Test authmap assignment and retrieval.
UserLoginTestCase::testPasswordRehashOnLogin
in drupal/
modules/
user/
user.test
Test that user password is re-hashed upon login after changing $count_log2.
XMLRPCValidator1IncTestCase::testValidator1
in drupal/
modules/
simpletest/
tests/
xmlrpc.test
Run validator1 tests.