/** * Saves all objects related to test. * * @throws fValidationException * @return WpTesting_Model_Test */ public function storeAll() { $this->transactionStart(); $this->wp->doAction('wp_testing_test_store_all_before', $this); $this->buildQuestionsWithAnswersAndScores(); fORMValidation::disableForeignKeyConstraintsCheck(); $this->populateAll()->store(true)->syncQuestionsAnswers(); $this->wp->doAction('wp_testing_test_store_all_after', $this); $this->transactionFinish(); return $this; }