Skip to content

Commit

Permalink
Correct casing of method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Dec 26, 2014
1 parent 6429b43 commit fa81c17
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/TestCase/Controller/Component/CsrfComponentTest.php
Expand Up @@ -63,7 +63,7 @@ public function testSettingCookie() {
$controller->response = new Response();

$event = new Event('Controller.startup', $controller);
$this->component->startUp($event);
$this->component->startup($event);

$cookie = $controller->response->cookie('csrfToken');
$this->assertNotEmpty($cookie, 'Should set a token.');
Expand Down Expand Up @@ -101,7 +101,7 @@ public function testValidTokenInHeader($method) {
$controller->response = new Response();

$event = new Event('Controller.startup', $controller);
$result = $this->component->startUp($event);
$result = $this->component->startup($event);
$this->assertNull($result, 'No exception means valid.');
}

Expand All @@ -124,7 +124,7 @@ public function testInvalidTokenInHeader($method) {
$controller->response = new Response();

$event = new Event('Controller.startup', $controller);
$this->component->startUp($event);
$this->component->startup($event);
}

/**
Expand All @@ -145,7 +145,7 @@ public function testValidTokenRequestData($method) {
$controller->response = new Response();

$event = new Event('Controller.startup', $controller);
$result = $this->component->startUp($event);
$result = $this->component->startup($event);
$this->assertNull($result, 'No exception means valid.');
}

Expand All @@ -168,7 +168,7 @@ public function testInvalidTokenRequestData($method) {
$controller->response = new Response();

$event = new Event('Controller.startup', $controller);
$this->component->startUp($event);
$this->component->startup($event);
}

/**
Expand All @@ -189,7 +189,7 @@ public function testCsrfValidationSkipsRequestAction() {
$controller->response = new Response();

$event = new Event('Controller.startup', $controller);
$result = $this->component->startUp($event);
$result = $this->component->startup($event);
$this->assertNull($result, 'No error.');
$this->assertEquals('testing123', $controller->request->params['_csrfToken']);
}
Expand All @@ -214,7 +214,7 @@ public function testConfigurationCookieCreate() {
]);

$event = new Event('Controller.startup', $controller);
$component->startUp($event);
$component->startup($event);

$this->assertEmpty($controller->response->cookie('csrfToken'));
$cookie = $controller->response->cookie('token');
Expand Down Expand Up @@ -248,7 +248,7 @@ public function testConfigurationValidate() {
]);

$event = new Event('Controller.startup', $controller);
$result = $component->startUp($event);
$result = $component->startup($event);
$this->assertNull($result, 'Config settings should work.');
}

Expand Down

0 comments on commit fa81c17

Please sign in to comment.