294fbc4c27183dc71bac1c7cf885abf31f69ce9c
[moodle.git] / portfolio / download / simpletest / testportfolioplugindownload.php
1 <?php
2 require_once($CFG->libdir.'/simpletest/testportfoliolib.php');
3 require_once($CFG->dirroot.'/portfolio/download/lib.php');
5 Mock::generate('boxclient', 'mock_boxclient');
6 Mock::generatePartial('portfolio_plugin_download', 'mock_downloadplugin', array('ensure_ticket', 'ensure_account_tree'));
9 class testPortfolioPluginDownload extends portfoliolib_test {
10     public static $includecoverage = array('lib/portfoliolib.php', 'portfolio/download/lib.php');
11     public function setUp() {
12         parent::setUp();
13         $this->plugin = &new mock_boxnetplugin($this);
14         $this->plugin->boxclient = new mock_boxclient();
15     }
17     public function tearDown() {
18         parent::tearDown();
19     }
21 }