You are here

public function RulesConditionalFrameworkTestCase::testPluginLabel in Conditional Rules 8

Same name and namespace in other branches
  1. 7 tests/rules_conditional.test \RulesConditionalFrameworkTestCase::testPluginLabel()

Tests plugin label.

File

tests/rules_conditional.test, line 66
SimpleTest testing suites.

Class

RulesConditionalFrameworkTestCase
Framework tests.

Code

public function testPluginLabel() {
  $container = new RulesConditionalTestStubContainer();
  $label = $container
    ->label();
  $this
    ->assertEqual('Stub conditional', $label, 'Default conditional container label uses the plugin label.');
  $branch = new RulesConditionalTestStubElement();
  $label = $branch
    ->label();
  $this
    ->assertEqual('Stub conditional element', $label, 'Default conditional element label uses the plugin label.');
}