-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCols.php
More file actions
35 lines (29 loc) · 742 Bytes
/
Cols.php
File metadata and controls
35 lines (29 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
/*
* This file is part of the QuidPHP package <https://quidphp.com>
* Author: Pierre-Philippe Emond <emondpph@gmail.com>
* License: https://github.com/quidphp/core/blob/master/LICENSE
*/
namespace Quid\Test\Core;
use Quid\Base;
use Quid\Core;
// cols
// class for testing Quid\Core\Cols
class Cols extends Base\Test
{
// trigger
final public static function trigger(array $data):bool
{
// prepare
$db = Core\Db::inst();
$table = 'ormCols';
$tb = $db[$table];
$cols = $tb->cols();
// tableFromFqcn
// orm
assert($db['session']->cols()->get(Core\Col\DateAdd::class) instanceof Core\Col\DateAdd);
return true;
}
}
?>