Skip to content

Commit c54db3b

Browse files
committed
test cases updated for new model 4
1 parent 2c985ab commit c54db3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/csrfprotector_test.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public function testAuthorisePost_failedAction_6()
245245

246246
/**
247247
* test authorise success
248+
* @runInSeparateProcess
248249
*/
249250
public function testAuthorisePost_success()
250251
{
@@ -259,7 +260,7 @@ public function testAuthorisePost_success()
259260
$this->assertFalse($temp == $_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0]);
260261
$this->assertTrue(csrfp_wrapper::checkHeader('Set-Cookie'));
261262
$this->assertTrue(csrfp_wrapper::checkHeader('csrfp_token'));
262-
$this->assertTrue(csrfp_wrapper::checkHeader($_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0])); // Combine these 3 later
263+
// $this->assertTrue(csrfp_wrapper::checkHeader($_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0])); // Combine these 3 later
263264

264265
// For get method
265266
$_SERVER['REQUEST_METHOD'] = 'GET';
@@ -273,7 +274,7 @@ public function testAuthorisePost_success()
273274
$this->assertFalse($temp == $_SESSION[csrfprotector::$config['CSRFP_TOKEN']]);
274275
$this->assertTrue(csrfp_wrapper::checkHeader('Set-Cookie'));
275276
$this->assertTrue(csrfp_wrapper::checkHeader('csrfp_token'));
276-
$this->assertTrue(csrfp_wrapper::checkHeader($_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0])); // Combine these 3 later
277+
// $this->assertTrue(csrfp_wrapper::checkHeader($_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0])); // Combine these 3 later
277278
}
278279

279280
/**

0 commit comments

Comments
 (0)