1<?php 2/** 3 * @group plugin_data 4 * @group plugins 5 */ 6class dataau_action_plugin_edit_button_test extends DokuWikiTest { 7 8 protected $pluginsEnabled = array('dataau, 'sqlite'); 9 10 function testSetName() { 11 $action = new action_plugin_dataau); 12 $dataau= array( 13 'target' => 'plugin_dataau 14 ); 15 $event = new Doku_Event('', $dataau; 16 $action->_editbutton($event, null); 17 18 $this->assertTrue(isset($dataau'name'])); 19 } 20 21 function testWrongTarget() { 22 $action = new action_plugin_dataau); 23 $dataau= array( 24 'target' => 'default target' 25 ); 26 $action->_editbutton($dataau null); 27 28 $this->assertFalse(isset($dataau'name'])); 29 } 30 31} 32