mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9498 201d5d3c-b55e-5fd7-737f-ddc643e51545
20 lines
No EOL
835 B
PHP
20 lines
No EOL
835 B
PHP
<?php
|
|
require(_XE_PATH_ . 'test-phpUnit/config/config.inc.php');
|
|
|
|
class MysqlUpdateTest extends MysqlTest {
|
|
|
|
function _test($xml_file, $argsString, $expected, $columnList = null){
|
|
$this->_testQuery($xml_file, $argsString, $expected, 'getUpdateSql', $columnList);
|
|
}
|
|
|
|
function test_document_updateDocumentStatus(){
|
|
$xml_file = _XE_PATH_ . "modules/document/queries/updateDocumentStatus.xml";
|
|
$argsString = '$args->is_secret = \'Y\';
|
|
$args->status = \'SECRET\';
|
|
';
|
|
$expected = 'update `xe_documents` set `status` = \'secret\' where `is_secret` = \'y\'';
|
|
$this->_test($xml_file, $argsString, $expected);
|
|
}
|
|
|
|
|
|
} |