Created
May 25, 2013 04:44
-
-
Save ss23/5647935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function testUserAgentLockout() { | |
// Set our user-agent | |
$_SERVER['HTTP_USER_AGENT'] = 'Test Agent'; | |
// Create an admin session | |
$session = new Session(array('loggedInAs' => $this->logInWithPermission())); | |
// Make a test request and confirm it works | |
$response = Director::test('admin/pages', null, $session); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment