Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
TestBase.php
»
TestBase
»
TestBase::pass
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
51 calls to TestBase::pass()
BookTest::checkBookNode
in drupal/
core/
modules/
book/
lib/
Drupal/
book/
Tests/
BookTest.php
Check the outline of sub-pages; previous, up, and next; and printer friendly version.
BrokenSetUpTest::setUp
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
BrokenSetUpTest.php
Sets up a Drupal site for running functional and integration tests.
BrokenSetUpTest::tearDown
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
BrokenSetUpTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
BrokenSetUpTest::testBreakSetUp
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
BrokenSetUpTest.php
Runs this test case from within the simpletest child site.
ChainMatcherTest::testMethodNotAllowed
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Routing/
ChainMatcherTest.php
Confirms that the expected exception is thrown.
ChainMatcherTest::testRequestNotFound
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Routing/
ChainMatcherTest.php
Confirms that the expected exception is thrown.
ColorTest::testHexToRgb
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
ColorTest.php
Tests Color::hexToRgb().
CommentTestBase::setCommentSettings
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentTestBase.php
Sets a comment settings variable for the article content type.
ConfigEntityTest::testCRUD
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
ConfigEntityTest.php
Tests CRUD operations.
ConfigStorageTestBase::testCRUD
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
Storage/
ConfigStorageTestBase.php
Tests storage controller CRUD operations.
ConfigUpgradeTest::testConfigurationUpdate
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
ConfigUpgradeTest.php
Tests
update_variables_to_config
().
ConnectionUnitTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
ConnectionUnitTest.php
Sets up unit test environment.
CrudTest::testCreateField
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Test the creation of a field.
CrudTest::testUpdateFieldForbid
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Test field type modules forbidding an update.
CrudTest::testUpdateFieldType
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
CrudTest::testUpdateNonExistentField
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
DrupalUnitTestBaseTest::testEnableModulesInstallContainer
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests installing modules via enableModules() with DepedencyInjection services.
DrupalUnitTestBaseTest::testEnableModulesInstallMultiple
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests installing of multiple modules via enableModules().
DrupalUnitTestBaseTest::testInstallSchema
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests expected behavior of installSchema().
EmptyStatementTest::testEmptyIteration
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
EmptyStatementTest.php
Tests that the empty result set iterates safely.
EntityTranslationTest::testEntityLanguageMethods
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityTranslationTest.php
Tests language related methods of the Entity class.
FactoryTest::testDefaultFactory
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Plugin/
FactoryTest.php
Test that DefaultFactory can create a plugin instance.
FactoryTest::testReflectionFactory
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Plugin/
FactoryTest.php
Test that the Reflection factory can create a plugin instance.
FieldInstanceCrudTest::testCreateFieldInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInstanceCrudTest.php
Test the creation of a field instance.
FieldSqlStorageTest::testFieldUpdateFailure
in drupal/
core/
modules/
field/
modules/
field_sql_storage/
lib/
Drupal/
field_sql_storage/
Tests/
FieldSqlStorageTest.php
Test that failure to create fields is handled gracefully.
FieldSqlStorageTest::testUpdateFieldSchemaWithData
in drupal/
core/
modules/
field/
modules/
field_sql_storage/
lib/
Drupal/
field_sql_storage/
Tests/
FieldSqlStorageTest.php
Test trying to update a field with data.
HtmlToTextTest::assertHtmlToText
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Mail/
HtmlToTextTest.php
Helper function for testing
drupal_html_to_text
().
HtmlToTextTest::testVeryLongLineWrap
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Mail/
HtmlToTextTest.php
Tests that
drupal_html_to_text
() wraps before 1000 characters.
InsertDefaultsTest::testDefaultEmptyInsert
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
InsertDefaultsTest.php
Tests that no action will be preformed if no fields are specified.
InstallTest::testCacheInstall
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Cache/
InstallTest.php
Tests the behavior of the cache backend used for installing Drupal.
InvalidDataTest::testInsertDuplicateData
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
InvalidDataTest.php
Tests aborting of traditional SQL database systems with invalid data.
MatcherDumperTest::testAddAdditionalRoutes
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Routing/
MatcherDumperTest.php
Confirms that we can add routes to the dumper when it already has some.
MergeTest::testInvalidMerge
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
MergeTest.php
Tests that an invalid merge query throws an exception.
NodeCreationTest::testFailedPageCreation
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeCreationTest.php
Verifies that a transaction rolls back the failed creation.
OptionsDynamicValuesValidationTest::testDynamicAllowedValues
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsDynamicValuesValidationTest.php
Test that allowed values function gets the entity.
OptionsFieldTest::testUpdateAllowedValues
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsFieldTest.php
Test that allowed values can be updated.
PercentagesUnitTest::testBatchPercentages
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Batch/
PercentagesUnitTest.php
Tests the
_batch_api_percentage
() function.
SchemaTest::assertFieldAdditionRemoval
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
SchemaTest.php
Asserts that a given field can be added and removed from a table.
SimpleTestTest::assertNothing
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
SimpleTestTest.php
Assert nothing.
SimpleTestTest::stubTest
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
SimpleTestTest.php
Test to be run and the results confirmed.
SystemListingCompatibleTest::testSystemListing
in drupal/
core/
profiles/
testing/
modules/
drupal_system_listing_compatible_test/
lib/
Drupal/
drupal_system_listing_compatible_test/
Tests/
SystemListingCompatibleTest.php
Non-empty test* method required to executed the test case class.
TermFieldTest::testTaxonomyTermFieldValidation
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TermFieldTest.php
Test term field validation.
TestBase::tearDown
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
TestBase.php
Deletes created files, database tables, and reverts all environment changes.
TransactionTest::testTransactionStacking
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
TransactionTest.php
Tests transaction stacking, commit, and rollback.
TransactionTest::testTransactionWithDdlStatement
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
TransactionTest.php
Tests the compatibility of transactions with DDL statements.
UnicodeUnitTest::testEmulatedUnicode
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
UnicodeUnitTest.php
Test emulated unicode features.
UnicodeUnitTest::testMbStringUnicode
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
UnicodeUnitTest.php
Test full unicode features implemented using the mbstring extension.
UpgradePathTestBase::performUpgrade
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
UpgradePathTestBase.php
Perform the upgrade.
UpgradePathTestBase::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
UpgradePathTestBase.php
Overrides
Drupal\simpletest\WebTestBase::setUp
() for upgrade testing.
WebTestBase::drupalCreateRole
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
WebTestBase.php
Internal helper function; Create a role with specified permissions.
WebTestBase::parse
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
WebTestBase.php
Parse content returned from curlExec using DOM and SimpleXML.