Permalink
Browse files

MDL-58625 behat: update tool_lp data generator

  • Loading branch information...
danpoltawski committed Apr 18, 2017
1 parent bdc70bb commit 34702e22e67d6052b42ff65672e3ead9e85ac1f3
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/tool/lp/tests/behat/behat_tool_lp_data_generators.php
@@ -175,11 +175,11 @@ protected function preprocess_competency($data) {
if (isset($data['framework'])) {
$framework = competency_framework::get_record(array('idnumber' => $data['framework']));
if ($framework) {
$data['competencyframeworkid'] = $framework->get_id();
$data['competencyframeworkid'] = $framework->get('id');
} else {
$framework = competency_framework::get_record(array('id' => $data['framework']));
if ($framework) {
$data['competencyframeworkid'] = $framework->get_id();
$data['competencyframeworkid'] = $framework->get('id');
} else {
throw new Exception('Could not resolve framework with idnumber or id : "' . $data['category'] . '"');
}

0 comments on commit 34702e2

Please sign in to comment.