public function PMOrganizationTestCase::testpmorganizationCreate in Drupal PM (Project Management) 7
Same name and namespace in other branches
- 8 pmorganization/pmorganization.test \PMOrganizationTestCase::testpmorganizationCreate()
- 7.3 pmorganization/pmorganization.test \PMOrganizationTestCase::testpmorganizationCreate()
- 7.2 pmorganization/pmorganization.test \PMOrganizationTestCase::testpmorganizationCreate()
Test case covering creation of pmorganizations.
File
- pmorganization/
pmorganization.test, line 47 - Test definitions for the PM Organization module
Class
- PMOrganizationTestCase
- @file Test definitions for the PM Organization module
Code
public function testpmorganizationCreate() {
$privileged_user = $this
->drupalCreateUser(array(
'Project Management Organization: add',
));
$this
->drupalLogin($privileged_user);
$edit = array(
'title' => $this
->randomName(32),
'body[und][0][value]' => $this
->randomName(64),
);
$this
->drupalPost('node/add/pmorganization', $edit, t('Save'));
$this
->assertText(t('Organization @title has been created.', array(
'@title' => $edit['title'],
)));
}