get(array('t' => 'dokuwiki'), '/lib/exe/js.php'); } catch (Exception $e) { $message = $e->getMessage(); } $this->assertEquals("/lib/exe/js.php \n--- only /doku.php, /lib/exe/fetch.php, /lib/exe/detail.php, /lib/exe/ajax.php are supported currently",$message); } /** * Add a query string to make a difference between public and editor */ public function test_js_show_query_string() { $test_name = 'test_js_show_query_string'; $pageId = webcomponent::getNameSpace() . $test_name; $doku_text = 'whatever'; saveWikiText($pageId, $doku_text, $test_name); idx_addPage($pageId); $testRequest = new TestRequest(); $testResponse = $testRequest->get(array('id' => $pageId)); $jsSrcAttribute = $testResponse->queryHTML('script[src*="js.php"]' )->attr('src'); $pos = strpos($jsSrcAttribute,action_plugin_webcomponent_js::ACCESS.'=public'); $this->assertEquals(true, $pos > 0); } }