public function testGetColumnFieldsReturnsConstructorValue()
 {
     $expected = array('day');
     $pivot = new PivotDescription($this->dataTable, $expected);
     $actual = $pivot->getColumnFields();
     $this->assertEquals($expected, $actual, "Expect to get my value back");
 }
Пример #2
0
 /**
  * @return array
  */
 public function getColumnFieldIndexes()
 {
     $indexes = $this->getColumnIndexesById($this->pivotDescription->getColumnFields());
     return $indexes;
 }