function CustomBreadcrumbsFeaturesMachineNamesTestCase::assertNoMachineName in Custom Breadcrumbs Features 7.2
Helper - Assert a crumb has no machine name.
Parameters
$cb_type: Breadcrumb type.
$name: Breadcrumb name.
1 call to CustomBreadcrumbsFeaturesMachineNamesTestCase::assertNoMachineName()
- CustomBreadcrumbsFeaturesMachineNamesTestCase::testMachineNames in tests/
machine_names.test - By default, crumbs have no machine name. If we enable our module, crumbs have machine names. If we create new crumbs, they have machine names. If we uninstall our module, crumbs have no machine name.
File
- tests/
machine_names.test, line 200 - Test that custom_breadcrumbs_features provides allows crumbs to have a machine name.
Class
- CustomBreadcrumbsFeaturesMachineNamesTestCase
- Test that Custom Breadcrumbs can be associated with machine names.
Code
function assertNoMachineName($cb_type, $name) {
$this
->assertFalse($this
->getMachineName($cb_type, $name), t('@type @name has no machine name.', array(
'@type' => $cb_type,
'@name' => $name,
)));
}