73 calls to TestBase::fail()

BlockStorageUnitTest::createTests in drupal/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
Tests the creation of blocks.
CommentAttributesTest::_testBasicCommentRdfaMarkup in drupal/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php
Helper function for testCommentRdfaMarkup().
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::testConnectionSerialization in drupal/core/modules/system/lib/Drupal/system/Tests/Database/ConnectionUnitTest.php
Tests the serialization and unserialization of a database connection.
ContextPluginTest::testContext in drupal/core/modules/system/lib/Drupal/system/Tests/Plugin/ContextPluginTest.php
Tests basic context definition and value getters and setters.
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
DbLogTest::asText in drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php
Extracts the text contained by the XHTML element.
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.
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().
EnableDisableTest::testEnableDisable in drupal/core/modules/system/lib/Drupal/system/Tests/Module/EnableDisableTest.php
Tests that all core modules can be enabled, disabled and uninstalled.
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.
EntityReferenceAdminTest::assertFieldSelectOptions in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceAdminTest.php
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.
FormTest::testRequiredCheckboxesRadio in drupal/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php
Tests validation for required checkbox, select, and radio elements.
ImageStylesPathAndUrlTest::_testImageStyleUrlAndPath in drupal/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php
Tests image_style_url().
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.
MissingCheckedRequirementsTest::testCheckRequirements in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/MissingCheckedRequirementsTest.php
Ensures test will not run when requirements are missing.
MissingDependentModuleUnitTest::testFail in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/MissingDependentModuleUnitTest.php
Ensure that this test will not be loaded despite its dependency.
NewDefaultThemeBlocksTest::testNewDefaultThemeBlocks in drupal/core/modules/block/lib/Drupal/block/Tests/NewDefaultThemeBlocksTest.php
Check the enabled Bartik blocks are correctly copied over.
NodeCreationTest::testFailedPageCreation in drupal/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php
Verifies that a transaction rolls back the failed creation.
NodeQueryAlterTest::testNodeQueryAlterLowLevelEditAccess in drupal/core/modules/node/lib/Drupal/node/Tests/NodeQueryAlterTest.php
Tests 'node_access' query alter, for edit access.
NodeQueryAlterTest::testNodeQueryAlterLowLevelNoAccess in drupal/core/modules/node/lib/Drupal/node/Tests/NodeQueryAlterTest.php
Tests 'node_access' query alter, for user without access.
NodeQueryAlterTest::testNodeQueryAlterLowLevelWithAccess in drupal/core/modules/node/lib/Drupal/node/Tests/NodeQueryAlterTest.php
Tests 'node_access' query alter, for user with access.
NodeQueryAlterTest::testNodeQueryAlterOverride in drupal/core/modules/node/lib/Drupal/node/Tests/NodeQueryAlterTest.php
Tests 'node_access' query alter override.
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.
RouteProviderTest::testOutlinePathMatchDefaults in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchDefaultsCollision in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchDefaultsCollision2 in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchZero in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/RouteProviderTest.php
Tests a route with a 0 as value.
RouteProviderTest::testOutlinePathNoMatch in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/RouteProviderTest.php
Confirms that an exception is thrown when no matching path is found.
SelectTest::testInvalidSelectCount in drupal/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php
Tests that an invalid merge query throws an exception.
SerializationTest::testSerializerComponentRegistration in drupal/core/modules/serialization/lib/Drupal/serialization/Tests/SerializationTest.php
Confirms that modules can register normalizers and encoders.
SimpleTestTest::asText in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Extract the text contained by the element.
SimpleTestTest::stubTest in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Test to be run and the results confirmed.
TemporaryQueryTest::testTemporaryQuery in drupal/core/modules/system/lib/Drupal/system/Tests/Database/TemporaryQueryTest.php
Confirms that temporary tables work and are limited to one request.
TermFieldTest::testTaxonomyTermFieldValidation in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldTest.php
Test term field validation.
TestBase::run in drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
Run all tests in this class.
TestBase::tearDown in drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
Deletes created files, database tables, and reverts all environment changes.
ToolkitGdTest::testManipulations in drupal/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitGdTest.php
Since PHP can't visually check that our images have been manipulated properly, build a list of expected color values for each of the corners and the expected height and widths for the final images.
TransactionTest::testCommittedTransaction in drupal/core/modules/system/lib/Drupal/system/Tests/Database/TransactionTest.php
Tests a committed transaction.
TransactionTest::testTransactionRollBackNotSupported in drupal/core/modules/system/lib/Drupal/system/Tests/Database/TransactionTest.php
Tests transaction rollback on a database that doesn't support transactions.
TransactionTest::testTransactionRollBackSupported in drupal/core/modules/system/lib/Drupal/system/Tests/Database/TransactionTest.php
Tests transaction rollback on a database that supports transactions.
TransactionTest::testTransactionStacking in drupal/core/modules/system/lib/Drupal/system/Tests/Database/TransactionTest.php
Tests transaction stacking, commit, and rollback.
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.
ViewPageControllerTest::testPageController in drupal/core/modules/views/lib/Drupal/views/Tests/ViewPageControllerTest.php
Tests the page controller.
WebTestBase::assertNoDuplicateIds in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Asserts that each HTML ID is used for just a single element.
WebTestBase::checkPermissions in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Check to make sure that the array of permissions are valid.
WebTestBase::drupalCreateRole in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Internal helper function; Create a role with specified permissions.
WebTestBase::drupalPost in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Execute a POST request on a Drupal page. It will be done as usual POST request with SimpleBrowser.
WebTestBase::parse in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Parse content returned from curlExec using DOM and SimpleXML.