示例#1
0
 /**
  * Method to test getPrimaryKey().
  *
  * @return void
  *
  * @covers Windwalker\DataMapper\AbstractDataMapper::getPrimaryKey
  */
 public function testGetPrimaryKey()
 {
     $this->assertEquals('id', $this->instance->getPrimaryKey());
     $mapper = new DataMapper('ww_flower', array('a', 'b'));
     $this->assertEquals(array('a', 'b'), $mapper->getPrimaryKey());
 }