33 lines
739 B
PHP
Executable File
33 lines
739 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
/**
|
|
|
|
title=productplanModel->isClickable();
|
|
timeout=0
|
|
cid=1
|
|
|
|
*/
|
|
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/productplan.class.php';
|
|
|
|
zdTable('productplan')->config('productplan')->gen(20);
|
|
$plan = new productPlan('admin');
|
|
|
|
$planID = array();
|
|
$planID[] = 10;
|
|
$planID[] = 1;
|
|
$planID[] = 12;
|
|
$planID[] = 15;
|
|
|
|
$action = array();
|
|
$action[] = 'start';
|
|
$action[] = 'finish';
|
|
$action[] = 'close';
|
|
$action[] = 'activate';
|
|
|
|
r($plan->isClickable($planID[0], $action[0])) && p() && e('0');
|
|
r($plan->isClickable($planID[1], $action[1])) && p() && e('0');
|
|
r($plan->isClickable($planID[2], $action[2])) && p() && e('0');
|
|
r($plan->isClickable($planID[3], $action[3])) && p() && e('1');
|