You are here

function CustomBreadcrumbsFeaturesMachineNamesTestCase::assertMachineName in Custom Breadcrumbs Features 7.2

Helper - Assert a crumb has a machine name.

Parameters

$cb_type: Breadcrumb type.

$name: Breadcrumb name.

2 calls to CustomBreadcrumbsFeaturesMachineNamesTestCase::assertMachineName()
CustomBreadcrumbsFeaturesMachineNamesTestCase::testDuplicateNames in tests/machine_names.test
Test machine name generation when 2 breadcrumbs have the same name.
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 188
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 assertMachineName($cb_type, $name) {
  $this
    ->assertTrue($this
    ->getMachineName($cb_type, $name), t('@type @name has a machine name.', array(
    '@type' => $cb_type,
    '@name' => $name,
  )));
}