public function testModelModelSavesModelResponses() { $this->auth(); $model = new ModelModel(array('modelID' => 1, 'depth' => 'response')); $page = $model->nextModelPage(); $section = $page->nextModelSection(); $question = $section->nextModelQuestion(); $response = $question->createModelResponse('match', 'test'); $modelResponseID = $response->modelResponseID; $model->save(); $testResponse = new ModelResponseModel(array('modelResponseID' => $modelResponseID)); $this->assertEquals($modelResponseID, $testResponse->modelResponseID); }