move session reset to endTest() - necessary because we need a valid session in the next unit tests setUp() call

This commit is contained in:
Thomas Müller 2014-03-14 18:16:20 +01:00
parent fc697c7298
commit fe05c0c81b
1 changed files with 2 additions and 4 deletions

View File

@ -24,16 +24,14 @@ class StartSessionListener implements PHPUnit_Framework_TestListener {
}
public function startTest(PHPUnit_Framework_Test $test) {
}
public function endTest(PHPUnit_Framework_Test $test, $time) {
// new session
\OC::$session = new \OC\Session\Memory('');
// load the version
OC_Util::getVersion();
}
public function endTest(PHPUnit_Framework_Test $test, $time) {
}
public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {