function CustomBreadcrumbsFeaturesCommonTestCase::loadBreadcrumb in Custom Breadcrumbs Features 7.2
Helper - Load a breadcrumb programmatically.
Parameters
$cb_type: Type of breadcrumb.
$machine_name: Machine name of the breadcrumb.
Return value
Breadcrumb object or FALSE.
2 calls to CustomBreadcrumbsFeaturesCommonTestCase::loadBreadcrumb()
- CustomBreadcrumbsFeaturesIntegrationTestCase::testFeaturesIntegration in tests/
features_integration.test - 1) By default, crumbs are in default state in Features. 2) If we modify a crumb, its state becomes override. 3) If we revert the feature, the crumb loses its modifications.
- CustomBreadcrumbsFeaturesIntegrationTestCase::testFeaturesUI in tests/
features_integration.test - If I create a breadcrumb, it shows up in the features interface. If I delete a breadcrumb, it does not show up in the features interface.
File
- tests/
common.test, line 61 - Common helpers for custom_breadcrumbs_features tests.
Class
- CustomBreadcrumbsFeaturesCommonTestCase
- Common functions for Custom Breadcrumbs Features tests.
Code
function loadBreadcrumb($cb_type, $machine_name) {
return db_select($cb_type, 'cb')
->fields('cb')
->condition('machine_name', $machine_name)
->execute()
->fetchObject();
}