MDL-68641 core_h5p: test dropped because the tested method was deleted
authorVíctor Déniz Falcón <victor@moodle.com>
Thu, 4 Jun 2020 18:26:13 +0000 (19:26 +0100)
committerVíctor Déniz Falcón <victor@moodle.com>
Thu, 4 Jun 2020 18:27:59 +0000 (19:27 +0100)
h5p/tests/editor_ajax_test.php

index 9ae0ae2..c0b6734 100644 (file)
@@ -79,24 +79,6 @@ class editor_ajax_testcase extends \advanced_testcase {
         $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.
      *