- Remove unused method and unit test of doc::buildBrowseSwitch.
This commit is contained in:
@@ -420,15 +420,6 @@ class docTest
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function buildBrowseSwitchTest($type, $objectID, $viewType)
|
||||
{
|
||||
$objects = $this->objectModel->buildBrowseSwitch($type, $objectID, $viewType);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function setFastMenuTest($fastLib)
|
||||
{
|
||||
$objects = $this->objectModel->setFastMenu($fastLib);
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/doc.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 docModel->buildBrowseSwitch();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
$doc = new docTest();
|
||||
|
||||
r($doc->buildBrowseSwitchTest()) && p() && e();
|
||||
Reference in New Issue
Block a user