move session reset to endTest() - necessary because we need a valid session in the next unit tests setUp() call
This commit is contained in:
parent
fc697c7298
commit
fe05c0c81b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue