Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
TestBase.php
»
TestBase
»
TestBase::pass
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
61 calls to TestBase::pass()
BookTest::checkBookNode
in drupal/
core/
modules/
book/
lib/
Drupal/
book/
Tests/
BookTest.php
Checks the outline of sub-pages; previous, up, and next.
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.
CommentTestBase::setCommentSettings
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentTestBase.php
Sets a comment settings variable for the article content type.
ConfigCRUDTest::testNameValidation
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
ConfigCRUDTest.php
Tests the validation of configuration object names.
ConfigEntityTest::testCRUD
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
ConfigEntityTest.php
Tests CRUD operations.
ConfigLocaleOverride::testInvalidContextName
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
ConfigLocaleOverride.php
Tests
config_context_enter
() invalid context name handling.
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.
ConnectionUnitTest::testConnectionSerialization
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
ConnectionUnitTest.php
Tests the serialization and unserialization of a database connection.
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
CustomBlockCreationTest::testFailedBlockCreation
in drupal/
core/
modules/
block/
custom_block/
lib/
Drupal/
custom_block/
Tests/
CustomBlockCreationTest.php
Verifies that a transaction rolls back the failed creation.
DatabaseExceptionWrapperTest::testDatabaseExceptionWrapper
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
DatabaseExceptionWrapperTest.php
DenormalizeTest::testTypeHandling
in drupal/
core/
modules/
hal/
lib/
Drupal/
hal/
Tests/
DenormalizeTest.php
Tests that the type link relation in incoming data is handled correctly.
DrupalUnitTestBase::disableModules
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
DrupalUnitTestBase.php
Disables modules for this test.
DrupalUnitTestBase::enableModules
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
DrupalUnitTestBase.php
Enables modules for this test.
DrupalUnitTestBase::installConfig
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
DrupalUnitTestBase.php
Installs default configuration for a given list of modules.
DrupalUnitTestBase::installSchema
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
DrupalUnitTestBase.php
Installs a specific table from a module schema definition.
DrupalUnitTestBaseTest::testEnableModulesInstallContainer
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests installing modules via enableModules() with DepedencyInjection services.
DrupalUnitTestBaseTest::testInstallConfig
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests expected behavior of installConfig().
DrupalUnitTestBaseTest::testInstallSchema
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests expected behavior of installSchema().
EntityApiTest::testEntityStorageExceptionHandling
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityApiTest.php
Tests that exceptions are properly thrown when saving or deleting an entity.
EntityCrudHookTest::testEntityNGRollback
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityCrudHookTest.php
Tests rollback from failed insert in EntityNG.
EntityTranslationTest::assertEntityLanguageMethods
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityTranslationTest.php
Executes the entity language method tests for the given entity type.
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_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_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.
InvalidDataTest::testInsertDuplicateData
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
InvalidDataTest.php
Tests aborting of traditional SQL database systems with invalid data.
LanguageUpgradePathTest::testLanguageUpgrade
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
LanguageUpgradePathTest.php
Tests a successful upgrade.
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.
MimeTypeMatcherTest::testNoRouteFound
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Routing/
MimeTypeMatcherTest.php
Confirms that the MimeTypeMatcher matcher throws an exception for no-route.
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/
options/
lib/
Drupal/
options/
Tests/
OptionsDynamicValuesValidationTest.php
Test that allowed values function gets the entity.
OptionsFieldTest::testUpdateAllowedValues
in drupal/
core/
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/
Database/
SchemaTest.php
Asserts that a given field can be added and removed from a table.
SelectTest::testInvalidSelectCount
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
SelectTest.php
Tests that an invalid merge query throws an exception.
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.
TypedDataTest::testTypedDataLists
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
TypedData/
TypedDataTest.php
Tests using typed data lists.
TypedDataTest::testTypedDataMaps
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
TypedData/
TypedDataTest.php
Tests using a typed data map.
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.
ViewPageControllerTest::testPageController
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
ViewPageControllerTest.php
Tests the page controller.
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.