public function test_valid_data_and_related() { global $PAGE; $exporter = new core_competency_testable_exporter($this->validdata, $this->validrelated); $output = $PAGE->get_renderer('tool_lp'); $result = $exporter->export($output); }
public function test_valid_data_and_related() { global $PAGE; $exporter = new core_competency_testable_exporter($this->validdata, $this->validrelated); $output = $PAGE->get_renderer('tool_lp'); $result = $exporter->export($output); $this->assertSame('Another string', $result->otherstring); $this->assertSame(array('String a', 'String b'), $result->otherstrings); }