You are here

public function QuizCreationTestCase::testQuizCreation in Quiz 7.5

Same name and namespace in other branches
  1. 7.6 tests/QuizCreationTestCase.test \QuizCreationTestCase::testQuizCreation()

Test basic quiz creation.

File

tests/QuizCreationTestCase.test, line 30
Unit tests for the quiz question Module.

Class

QuizCreationTestCase
Test aspects of quiz creation including global and user defaults.

Code

public function testQuizCreation() {
  $this
    ->drupalLogin($this->admin);
  $this
    ->drupalGet("node/add/quiz");
  $this
    ->drupalPost(NULL, array(
    'title' => 'Test quiz creation',
  ), t('Save'));
  $this
    ->assertText('has been created');
}