public function testCreatePrependAdded() { $question = new IntervalQuestion(); $behaviorConfig = $question->behaviors()['sort']; $behaviorConfig['prependAdded'] = true; $question->detachBehavior('sort'); $question->attachBehavior('sort', $behaviorConfig); $question->setAttributes(['test_id' => 1, 'content' => 'Do you have a car?'], false); $question->save(); $this->checkQuestion($question, 500, [1000, 2000, 3000, 4000, 5000]); }