/**
  * Create a Sitemap Generator
  * @param  array            $documentTypes
  * @param  array            $propertyMap
  * @return SitemapGenerator
  */
 protected function generatorFactory(array $documentTypes, array $propertyMap)
 {
     $generator = new SitemapGenerator();
     $generator->setContext($this->getContext());
     $generator->setPrismicApi($this->getPrismicApi());
     $generator->setDocumentTypes($documentTypes);
     $generator->setLinkResolver($this->linkResolver);
     $generator->setLinkGenerator($this->linkGenerator);
     $generator->setPropertyMap($propertyMap);
     $generator->setExclusions($this->exclude);
     return $generator;
 }
 /**
  * @expectedException NetgluePrismic\Exception\InvalidArgumentException
  * @expectedExceptionMessage Encountered fragment identifier that was not a string
  */
 public function testSetPropertyMapThrowsExceptionForNonStringFragmentName()
 {
     $generator = new SitemapGenerator();
     $generator->setPropertyMap(array('foo' => 1));
 }