You are here

protected function OpignoSimpleUIQuizTest::_createQuiz in Opigno 7.0

Create a quiz

1 call to OpignoSimpleUIQuizTest::_createQuiz()
OpignoSimpleUIQuizTest::testQuizForm in modules/opigno_simple_ui/tests/opigno_simple_ui.quiz.test

File

modules/opigno_simple_ui/tests/opigno_simple_ui.quiz.test, line 60
Check Quiz overrides.

Class

OpignoSimpleUIQuizTest
@file Check Quiz overrides.

Code

protected function _createQuiz() {
  $this
    ->drupalGet('node/add/quiz');
  $edit = array(
    'title' => $this
      ->randomName(8),
    'body[' . LANGUAGE_NONE . '][0][value]' => $this
      ->randomName(8),
  );
  $this
    ->drupalPost($this
    ->getURL(), $edit, 'Save');
}