public function RulesConditionalFrameworkTestCase::testPluginLabel in Conditional Rules 7
Same name and namespace in other branches
- 8 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.');
}