summaryrefslogtreecommitdiff
path: root/tests/simple_unit/TableGateway/TableInfoGatewayTest.php
blob: 6c85248cf5b76caa3f1aec1781c12bc140b7f83c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

require_once(dirname(__FILE__).'/BaseGatewayTest.php');

class TableInfoGatewayTest extends BaseGatewayTest
{
	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->assertEqual(count($table->findAll()->readAll()), 2);
	}
}