Skip to content

Commit ce0571f

Browse files
committed
Attempting test fix
1 parent 8e85a1b commit ce0571f

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

code/controllers/MasqueradeSecurityController.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,4 @@ public function logout($redirect = true)
2323
}
2424
}
2525

26-
/**
27-
* Returns the SS_HTTPResponse object that this controller is building up.
28-
* Can be used to set the status code and headers
29-
*/
30-
public function getResponse() {
31-
if (!$this->response) {
32-
$this->setResponse(new SS_HTTPResponse());
33-
}
34-
return $this->response;
35-
}
36-
37-
/**
38-
* Sets the SS_HTTPResponse object that this controller is building up.
39-
*
40-
* @param SS_HTTPResponse $response
41-
* @return Controller
42-
*/
43-
public function setResponse(SS_HTTPResponse $response) {
44-
$this->response = $response;
45-
return $this;
46-
}
47-
4826
}

tests/MasqueradeSecurityControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function testLogout()
1414

1515
$this->assertEquals($member->ID, Session::get('loggedInAs'));
1616
$sc = new MasqueradeSecurityController();
17-
$sc->init();
17+
//$sc->init();
1818
$sc->logout(false);
1919

2020
$this->assertEquals($admin->ID, Session::get('loggedInAs'));

0 commit comments

Comments
 (0)