summaryrefslogtreecommitdiff
path: root/tests/unit/Data/TableGateway/CountTest.php
blob: 074d935bab9e283ec9d785155e1bd642a678a768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

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

/**
 * @package System.Data.TableGateway
 */
class CountTest extends BaseGatewayTest
{
	function test_simple_count()
	{
		$result = $this->getGateway2()->count();
		$this->assertEqual(44,$result);

		$result = $this->getGateway2()->count('department_id = ?', 1);
		$this->assertEqual(4, $result);
	}
}