function CustomBreadcrumbsFeaturesCommonTestCase::saveBreadcrumb in Custom Breadcrumbs Features 7.2
Helper - Save a breadcrumb programmatically.
Parameters
$cb_type: Type of breadcrumb.
$breadcrumb: Breadcrumb object.
1 call to CustomBreadcrumbsFeaturesCommonTestCase::saveBreadcrumb()
- 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.
File
- tests/
common.test, line 77 - Common helpers for custom_breadcrumbs_features tests.
Class
- CustomBreadcrumbsFeaturesCommonTestCase
- Common functions for Custom Breadcrumbs Features tests.
Code
function saveBreadcrumb($cb_type, $breadcrumb) {
drupal_write_record($cb_type, $breadcrumb, array(
'bid',
));
}