1<?php 2/** 3 * @group plugin_inlineedit 4 * @group plugins 5 */ 6class plugin_inlineedit_syntax_test extends DokuWikiTest { 7 8 public function setup() { 9 $this->pluginsEnabled[] = 'inlineedit'; 10 $this->pluginsEnabled[] = 'ajaxedit'; 11 parent::setup(); 12 } 13 14 15 public function test_basic_syntax() { 16 global $INFO; 17 $INFO['id'] = 'test:plugin_inlineedit:syntax'; 18 saveWikiText('test:plugin_inlineedit:syntax','<inlineedit>Test</inlineedit>','test'); 19 20 $xhtml = p_wiki_xhtml('test:plugin_inlineedit:syntax'); 21 22 $doc = phpQuery::newDocument($xhtml); 23 24 $mselector = pq("span.plugin__inlineedit",$doc); 25 $this->assertTrue($mselector->length === 1); 26 $this->assertContains('Test', $mselector->text()); 27 28 } 29} 30