Skip to content

Commit

Permalink
chore(tests): Rename wrong Request tests
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Mar 14, 2024
1 parent f73e608 commit 5fca3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/AppFramework/Http/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,7 @@ public function invalidTokenDataProvider() {
* @dataProvider invalidTokenDataProvider
* @param string $invalidToken
*/
public function testPassesCSRFCheckWithInvalidToken($invalidToken) {
public function testFailsCSRFCheckWithInvalidToken($invalidToken) {
/** @var Request $request */
$request = $this->getMockBuilder('\OC\AppFramework\Http\Request')
->setMethods(['getScriptName'])
Expand All @@ -2246,7 +2246,7 @@ public function testPassesCSRFCheckWithInvalidToken($invalidToken) {
$this->assertFalse($request->passesCSRFCheck());
}

public function testPassesCSRFCheckWithoutTokenFail() {
public function testFailsCSRFCheckWithoutToken() {
/** @var Request $request */
$request = $this->getMockBuilder('\OC\AppFramework\Http\Request')
->setMethods(['getScriptName'])
Expand Down

0 comments on commit 5fca3cc

Please sign in to comment.