Commit 3270ec128a9c7471f794eabad6870db46956d925
1 parent
e438c2e3
Tests for ktentity
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3461 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
37 additions
and
0 deletions
tests/ktentity/createFromArray.php
0 โ 100644
tests/ktentity/load.php
0 โ 100644
tests/ktentity/updateFromArray.php
0 โ 100644
| 1 | +<?php | ||
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | +require_once(KT_LIB_DIR . "/help/helpreplacement.inc.php"); | ||
| 5 | + | ||
| 6 | +error_reporting(E_ALL); | ||
| 7 | + | ||
| 8 | +$oObject = new KTHelpReplacement; | ||
| 9 | +$oObject->load(1); | ||
| 10 | +$oObject->updateFromArray(array( | ||
| 11 | + 'name' => 'qwerasdf2', | ||
| 12 | +)); | ||
| 13 | + | ||
| 14 | +?> |