public function PMPersonTestCase::testpmpersonCreate in Drupal PM (Project Management) 7
Node creation test case.
File
- pmperson/
pmperson.test, line 53 - Test definitions for the PM Person module.
Class
- PMPersonTestCase
- Test definition for the PM Person module.
Code
public function testpmpersonCreate() {
$org = array(
'title' => $this
->randomName(32),
'body[und][0][value]' => $this
->randomName(64),
);
$person = array(
'title' => $this
->randomName(32),
'body[und][0][value]' => $this
->randomName(64),
);
$this
->drupalPost('node/add/pmorganization', $org, t('Save'));
$this
->drupalPost('node/add/pmperson', $person, t('Save'));
$this
->assertText(t('Person @title has been created.', array(
'@title' => $person['title'],
)));
}