public function AnswersTestCase::testAddContentOverview in Answers 7.3
Same name and namespace in other branches
- 7.4 answers.test \AnswersTestCase::testAddContentOverview()
Test add content overview with other types.
File
- ./
answers.test, line 162 - Tests for answers.module.
Class
- AnswersTestCase
- Tests the functionality of the answers module.
Code
public function testAddContentOverview() {
$admin_user = $this
->drupalCreateUser(array(
'administer content types',
'create question content',
'edit own question content',
'create answer content',
'edit own answer content',
));
$this
->drupalLogin($admin_user);
$this
->drupalGet('node/add');
// $content_type = $this->drupalCreateContentType($settings);
$this
->assertLink('Question');
$this
->assertNoLink('Answer');
}