mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 10:54:41 -04:00
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
1 changed files with 2 additions and 4 deletions
|
|
@ -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 a new issue