Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-rath committed Feb 21, 2020
1 parent a764763 commit 9e723f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class RouteDataMapper implements DataMapperInterface
*/
private $structureDefaultTypes;

/**
* @param array<string, string> $structureDefaultTypes
*/
public function __construct(
StructureMetadataFactoryInterface $factory,
RouteGeneratorInterface $routeGenerator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function testMapNoTemplate(): void
$localizedDimensionContent = $this->prophesize(DimensionContentInterface::class);
$localizedDimensionContent->willImplement(RoutableInterface::class);
$localizedDimensionContent->willImplement(TemplateInterface::class);
$localizedDimensionContent->getTemplateType()->willReturn('example');

$factory = $this->prophesize(StructureMetadataFactoryInterface::class);
$routeGenerator = $this->prophesize(RouteGeneratorInterface::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

class TemplateMapperTest extends TestCase
{
/**
* @param array<string, string> $structureDefaultTypes
*/
protected function createTemplateDataMapperInstance(
StructureMetadataFactoryInterface $structureMetadataFactory,
array $structureDefaultTypes = []
Expand Down Expand Up @@ -58,6 +61,7 @@ public function testMapLocalizedNoTemplateKey(): void

$dimensionContent = $this->prophesize(DimensionContentInterface::class);
$dimensionContent->willImplement(TemplateInterface::class);
$dimensionContent->getTemplateType()->willReturn('example');

$localizedDimensionContent = $this->prophesize(DimensionContentInterface::class);

Expand Down

0 comments on commit 9e723f3

Please sign in to comment.