You are here

public function AnswersTestCase::testAddContentOverview in Answers 7.4

Same name and namespace in other branches
  1. 7.3 answers.test \AnswersTestCase::testAddContentOverview()

Test add content overview with other types.

File

./answers.test, line 154
Tests for answers.module.

Class

AnswersTestCase
Tests the functionality of the answers module.

Code

public function testAddContentOverview() {
  $settings = array(
    'type' => 'my_special_node_type',
  );
  $content_type = $this
    ->drupalCreateContentType($settings);
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer content types',
    'create my_special_node_type content',
  ));
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('node/add');
  $this
    ->assertLink($content_type->name);
  $this
    ->assertLink('Question');
  $this
    ->assertNoLink('Answer');
}