public function PMIssueTestCase::testpmissueCreate in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmissue/pmissue.test \PMIssueTestCase::testpmissueCreate()
- 7.2 pmissue/pmissue.test \PMIssueTestCase::testpmissueCreate()
Test of Issue node creation.
File
- pmissue/
pmissue.test, line 55 - Test definitions for PM Issue.
Class
- PMIssueTestCase
- Define a test case for PM Issue.
Code
public function testpmissueCreate() {
// Log in with permission to create test content.
$user = $this
->drupalCreateUser(array(
'create pmissue content',
));
$this
->drupalLogin($user);
// Create test content.
$issue = array(
'title' => $this
->randomName(32),
);
$this
->drupalPost('node/add/pmissue', $issue, t('Save'));
$this
->assertText(t('Issue @title has been created.', array(
'@title' => $issue['title'],
)));
}