Skip to content

Commit

Permalink
MDL-68641 core_h5p: test dropped because the tested method was deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdef committed Jun 4, 2020
1 parent 069ae91 commit 8803671
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions h5p/tests/editor_ajax_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,6 @@ public function test_getLatestLibraryVersions(): void {
$this->assertEquals($expectedlibraries, array_keys($actuallibraries));
}

/**
* Test that the method validateEditorToken validates an existing token.
*/
public function test_validateEditorToken(): void {
// The action param is not used at all.
$token = core::createToken('editorajax');
$wrongaction = core::createToken('wrongaction');
$badtoken = 'xkadfpuealkdjsflkajsñf';

$validtoken = $this->editorajax->validateEditorToken($token);
$invalidaction = $this->editorajax->validateEditorToken($wrongaction);
$invalidtoken = $this->editorajax->validateEditorToken($badtoken);

$this->assertTrue($validtoken);
$this->assertTrue($invalidaction);
$this->assertFalse($invalidtoken);
}

/**
* Test that the method getTranslations retrieves the translations of several libraries.
*
Expand Down

0 comments on commit 8803671

Please sign in to comment.