Commit 2d4a47afad86c39bfe1f9823ff33c2231be5f6c4
1 parent
5522caa4
Simple test of cache invalidation.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5223 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
15 additions
and
0 deletions
tests/cache/testListCache.php
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | +require_once('../../config/dmsDefaults.php'); | |
| 4 | +require_once(KT_LIB_DIR . '/groups/Group.inc'); | |
| 5 | + | |
| 6 | +$f = Group::getList(); | |
| 7 | +var_dump($f); | |
| 8 | +DBUtil::startTransaction(); | |
| 9 | +$g = Group::createFromArray(array( | |
| 10 | + 'name' => 'foo', | |
| 11 | +)); | |
| 12 | +$f = Group::getList(); | |
| 13 | +$f = Group::getList(); | |
| 14 | +$f = Group::getList(); | |
| 15 | +DBUtil::rollback(); | ... | ... |