Example #1
0
 public function testGetPrimaryKey()
 {
     $expected = 'table_id';
     $table = $this->getMockBuilder(Table::class)->disableOriginalConstructor()->getMock();
     $table->expects($this->once())->method('getPrimaryKey')->will($this->returnValue($expected));
     $row = new Row($table, self::$languageRow);
     $this->assertSame($expected, $row->getPrimaryKey());
 }