Skip to content

Commit

Permalink
issue #909: fix dynamic propeties
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim committed Nov 15, 2024
1 parent 261108b commit b145eed
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/step.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class step extends persistent {
/** @var array array for lazy loading step dependants */
private $dependents = null;

/** @var dataflow Dataflow */
private $dataflow = null;

/**
* Return the definition of the properties of this model.
*
Expand Down
31 changes: 31 additions & 0 deletions tests/tool_dataflows_event_processor_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,37 @@
*/
class tool_dataflows_event_processor_test extends \advanced_testcase {

/**
* Test workflow.
* @var \tool_dataflows\dataflow
*/
protected $dataflow;

/**
* Test writer.
* @var
*/
protected $writer;

/**
* Test reader.
* @var
*/
protected $reader;

/**
* Test course.
*
* @var \stdClass
*/
protected $course;

/**
* Test output path.
* @var
*/
protected $outputpath;

/**
* Set up before each test
*/
Expand Down
35 changes: 35 additions & 0 deletions tests/tool_dataflows_flow_sql_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,41 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_dataflows_flow_sql_test extends \advanced_testcase {
/**
* Test workflow.
* @var \tool_dataflows\dataflow
*/
protected $dataflow;

/**
* Test writer.
* @var
*/
protected $writer;

/**
* Test reader.
* @var
*/
protected $reader;

/**
* Test input path.
* @var false|string
*/
protected $inputpath;

/**
* Test output path.
* @var
*/
protected $outputpath;

/**
* Test flow step.
* @var \tool_dataflows\step
*/
protected $flow;

/**
* Set up before each test
Expand Down
36 changes: 36 additions & 0 deletions tests/tool_dataflows_json_reader_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,42 @@
*/
class tool_dataflows_json_reader_test extends \advanced_testcase {

/**
* Test workflow.
* @var \tool_dataflows\dataflow
*/
protected $dataflow;

/**
* Test writer.
* @var
*/
protected $writer;

/**
* Test reader.
* @var
*/
protected $reader;

/**
* Test input path.
* @var false|string
*/
protected $inputpath;

/**
* Test output path.
* @var
*/
protected $outputpath;

/**
* Test users.
* @var
*/
protected $users;

/**
* Set up before each test
*/
Expand Down
11 changes: 11 additions & 0 deletions tests/tool_dataflows_reader_csv_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_dataflows_reader_csv_test extends \advanced_testcase {
/**
* Test writer.
* @var
*/
protected $writer;

/**
* Test reader.
* @var
*/
protected $reader;

/**
* Set up before each test
Expand Down

0 comments on commit b145eed

Please sign in to comment.