function CustomBreadcrumbsFeaturesCommonTestCase::deleteBreadcrumb in Custom Breadcrumbs Features 7.2
Helper - Delete a breadcrumb using the web UI.
Parameters
$cb_type: Type of breadcrumb.
$bid: Breadcrumb id.
1 call to CustomBreadcrumbsFeaturesCommonTestCase::deleteBreadcrumb()
- 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 41 - Common helpers for custom_breadcrumbs_features tests.
Class
- CustomBreadcrumbsFeaturesCommonTestCase
- Common functions for Custom Breadcrumbs Features tests.
Code
function deleteBreadcrumb($cb_type, $bid) {
$paths = $this
->getBreadcrumbTypes();
$this
->drupalGet('admin/structure/custom_breadcrumbs/' . $paths[$cb_type] . '/edit/' . $bid);
$this
->assertResponse(200);
$edit = array();
$this
->drupalPost(NULL, $edit, t('Delete'));
$this
->assertResponse(200);
}