Example #1
0
 public function let(PropertyAccessorInterface $propertyAccessor, MappingConfigurator $mappingConfigurator, Factory $factory, EventDispatcherInterface $eventDispatcher)
 {
     $mappingConfigurator->isPropertyVisible(['id'])->willReturn(true);
     $mappingConfigurator->isPropertyVisible(['a'])->willReturn(true);
     $mappingConfigurator->hasRelation(['a'])->willReturn(false);
     $this->beConstructedWith($propertyAccessor, $factory, $mappingConfigurator, $eventDispatcher);
 }
Example #2
0
 /**
  * @param array $path
  * @return bool
  */
 private function hasRelation(array $path)
 {
     return $this->mappingConfigurator && $this->mappingConfigurator->hasRelation($path);
 }