Skip to content

Commit

Permalink
MDL-28620 - Removed admin/generator.php include as it causes issues i…
Browse files Browse the repository at this point in the history
…f this script is included from any other script that is running in the command line
  • Loading branch information
jbrisland committed Aug 5, 2011
1 parent 3fdc622 commit a8b2690
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/simpletest/portfolio_testclass.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
require_once("$CFG->libdir/portfoliolib.php");
require_once("$CFG->libdir/portfolio/exporter.php");
require_once("$CFG->libdir/portfolio/plugin.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");

class portfolio_plugin_test extends portfolio_plugin_push_base {
public function expected_time($callertime){
Expand Down
1 change: 0 additions & 1 deletion lib/simpletest/testrepositorylib.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
}

require_once("$CFG->dirroot/repository/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");

// Generate a mock class for each plugin subclass present
$repository_plugins = get_list_of_plugins('repository');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
require_once("$CFG->dirroot/mod/assignment/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");
require_once("$CFG->dirroot/mod/assignment/locallib.php");

Mock::generate('assignment_portfolio_caller', 'mock_caller');
Expand Down
1 change: 0 additions & 1 deletion mod/chat/simpletest/test_chat_portfolio_callers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
require_once("$CFG->dirroot/mod/chat/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");

/*
* TODO: The portfolio unit tests were obselete and did not work.
Expand Down
1 change: 0 additions & 1 deletion mod/data/simpletest/test_data_portfolio_callers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
require_once("$CFG->dirroot/mod/data/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");
require_once("$CFG->dirroot/mod/data/locallib.php");

/*
Expand Down
1 change: 0 additions & 1 deletion mod/forum/simpletest/test_forum_portfolio_callers.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
require_once("$CFG->dirroot/mod/forum/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");

/*
* TODO: The portfolio unit tests were obselete and did not work.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
require_once("$CFG->dirroot/mod/glossary/lib.php");
require_once("$CFG->dirroot/mod/glossary/locallib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");

/*
* TODO: The portfolio unit tests were obselete and did not work.
Expand Down
1 change: 0 additions & 1 deletion portfolio/boxnet/simpletest/testportfoliopluginboxnet.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
require_once("$CFG->libdir/simpletest/testportfoliolib.php");
require_once("$CFG->dirroot/portfolio/boxnet/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");

/*
* TODO: The portfolio unit tests were obselete and did not work.
Expand Down

0 comments on commit a8b2690

Please sign in to comment.