Exemplo n.º 1
0
 /**
  * Get the media attributes
  *
  * @return string[]
  */
 public function getMediaAttributes()
 {
     if (null === $this->mediaAttributes) {
         $this->mediaAttributes = $this->attributeRepository->findMediaAttributeCodes();
     }
     return $this->mediaAttributes;
 }
 function let(AttributeRepositoryInterface $attributeRepository)
 {
     $attributeRepository->findMediaAttributeCodes()->willReturn(['view', 'manual']);
     $this->beConstructedWith($attributeRepository, ['.', ','], ['Y-m-d', 'd-m-Y']);
 }