コード例 #1
0
ファイル: SelectTest.php プロジェクト: rezix/ZfcDatagrid
 public function testConstructDefaultBoth()
 {
     $col = new Column\Select('id', 'user');
     $this->assertEquals('user_id', $col->getUniqueId());
     $this->assertEquals('user', $col->getSelectPart1());
     $this->assertEquals('id', $col->getSelectPart2());
 }
コード例 #2
0
ファイル: SelectTest.php プロジェクト: DAICAR/ZfcDatagrid
 public function testSelectPart12()
 {
     $col = new Column\Select('id', 'user');
     $col->setSelect('id', 'user');
     $this->assertEquals('id', $col->getSelectPart1());
     $this->assertEquals('user', $col->getSelectPart2());
 }