/**
  * @param $entity
  * @param array $params
  * @return array
  */
 public function values($entity, array $params = [])
 {
     $result = [];
     $loops = $this->times;
     $this->times = 1;
     for ($i = 1; $i <= $loops; $i++) {
         $fakeValues = $this->valueFactory->getAllValues($entity);
         $result[] = array_merge($fakeValues, $params);
     }
     return count($result) > 1 ? $result : array_pop($result);
 }
 /** @test */
 public function it_returns_an_empty_array_if_not_config_exists()
 {
     $values = $this->valueFactory->getAllValues(House::class);
     $this->assertEquals([], $values);
 }