* [task#126878,done,0.1h,0h] Modify sonar errors of ui test to activate execution.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/ui.php';
|
||||
Class activateExecutionTester extends tester
|
||||
class activateExecutionTester extends tester
|
||||
{
|
||||
/**
|
||||
* 输入激活执行表单字段。
|
||||
@@ -13,7 +13,6 @@ Class activateExecutionTester extends tester
|
||||
public function inputFields($end, $executionId)
|
||||
{
|
||||
$form = $this->initForm('execution', 'view', array('execution' => $executionId ), 'appIframe-execution');
|
||||
$plannedBegin = $form->dom->plannedBegin->getText();
|
||||
$form->dom->btn($this->lang->execution->activate)->click();
|
||||
if(isset($end)) $form->dom->end->datePicker($end);
|
||||
$form->dom->activateSubmit->click();
|
||||
|
||||
@@ -55,7 +55,7 @@ class putoffExecutionTester extends tester
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
Public function putoffWithWrongDate($execution, $executionId, $dateType = 'end')
|
||||
public function putoffWithWrongDate($execution, $executionId, $dateType = 'end')
|
||||
{
|
||||
$this->inputFields($execution, $executionId);
|
||||
$form = $this->loadPage();
|
||||
|
||||
Reference in New Issue
Block a user