/**
  * @param IntervalQuestion $question
  * @param null|integer $questionSort
  * @param array $otherQuestionsSort
  * @param boolean $checkOtherTestQuestions
  */
 protected function checkQuestion($question, $questionSort = null, $otherQuestionsSort, $checkOtherTestQuestions = true)
 {
     if ($questionSort) {
         $this->assertEquals($questionSort, $question->sort, 'Model sort matches');
     }
     $this->assertEquals($otherQuestionsSort, $question->getOtherQuestionsSort(), 'Other models sort matches');
     if ($checkOtherTestQuestions) {
         $this->checkOtherTestQuestions(2);
     }
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['sort' => ['class' => IntervalNumericalSortableBehavior::className(), 'scope' => function () {
         return IntervalQuestion::find()->where(['test_id' => $this->test_id]);
     }, 'sortableCondition' => ['is_active' => 1]]];
 }