Skip to content

Commit

Permalink
Attempt to fix failing unit tests that use runInSeparateProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovtwout committed Jun 4, 2024
1 parent 1b95757 commit baf5165
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/framework/web/CCookieCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function testConstructorCookieBuilding()
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
* @outputBuffering enabled
*/
public function testAdd()
Expand All @@ -59,6 +60,7 @@ public function testAdd()
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
* @outputBuffering enabled
*/
public function testRemove()
Expand Down
1 change: 1 addition & 0 deletions tests/framework/web/CHttpSessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ protected function checkProb($gcProb) {
* @covers CHttpSession::setGCProbability
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testSetGet() {
Yii::app()->setComponents(array('session' => array(
Expand Down
2 changes: 2 additions & 0 deletions tests/framework/web/auth/CWebUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function booleanProvider()

/**
* @runInSeparateProcess
* @preserveGlobalState disabled
* @outputBuffering enabled
* @dataProvider booleanProvider
*/
Expand Down Expand Up @@ -59,6 +60,7 @@ public function testLoginLogout($destroySession)

/**
* @runInSeparateProcess
* @preserveGlobalState disabled
* @outputBuffering enabled
*/
public function testCheckAccess()
Expand Down

0 comments on commit baf5165

Please sign in to comment.