blob: 9d4c2a49e60d35d726fec8add02f87f80ff8b7d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
require_once(dirname(__FILE__).'/BaseGateway.php');
/**
* @package System.Data.TableGateway
*/
class TableInfoGatewayTest extends BaseGateway
{
function test_table_info()
{
$conn = $this->getGateway()->getDbConnection();
$this->add_record1();
$this->add_record2();
$info = TDbMetaData::getInstance($conn)->getTableInfo('address');
$table = new TTableGateway($info, $conn);
$this->assertEquals(count($table->findAll()->readAll()), 2);
}
}
|