Merge pull request #31 from DavidBadura/test-speedup

Test speedup
This commit is contained in:
David Badura
2015-08-01 23:58:07 +02:00
6 changed files with 39 additions and 14 deletions

View File

@@ -37,7 +37,13 @@ class TaskManagerTest extends \PHPUnit_Framework_TestCase
$fs->remove($this->taskDir . '/.taskrc');
$fs->remove($this->taskDir . '/.task');
$this->taskwarrior = new Taskwarrior($this->taskDir . '/.taskrc', $this->taskDir . '/.task');
$bin = 'task';
if (file_exists(__DIR__ . '/../task')) {
$bin = realpath(__DIR__ . '/../task');
}
$this->taskwarrior = new Taskwarrior($this->taskDir . '/.taskrc', $this->taskDir . '/.task', [], $bin);
$this->taskManager = new TaskManager($this->taskwarrior);
$this->taskwarrior->version(); // to initialise
}