public function ChecklistapiWebTestCase::testChecklistComposition in Checklist API 7
Test checklist composition.
File
- tests/
checklistapi.test, line 130 - Tests for Checklist API module.
Class
- ChecklistapiWebTestCase
- Functional tests for Checklist API.
Code
public function testChecklistComposition() {
$menu_item = menu_get_item('admin/config/development/checklistapi-example');
$this
->assertEqual($menu_item['path'], 'admin/config/development/checklistapi-example', 'Created per-checklist menu item.');
$permissions = array(
'edit example_checklist checklistapi checklist',
);
$this
->assertTrue($this
->checkPermissions($permissions), 'Created per-checklist permission.');
$this
->drupalGet('admin/config/development/checklistapi-example');
$this
->assertRaw('id="block-system-help"', 'Created per-checklist help block.');
}