function let(AujaRouter $aujaRouter, Relation $relation, Model $left, Model $right)
 {
     $this->beConstructedWith($aujaRouter);
     $this->relation = $relation;
     $relation->getLeft()->willReturn($left);
     $relation->getRight()->willReturn($right);
     $relation->getType()->willReturn('hasMany');
     $left->getName()->willReturn('Model');
     $right->getName()->willReturn('OtherModel');
     URL::shouldReceive('route');
     Lang::shouldReceive('trans')->with('Edit')->andReturn('Edit');
     Lang::shouldReceive('trans')->with('Properties')->andReturn('Properties');
     Lang::shouldReceive('trans')->with('OtherModel')->andReturn('OtherModel');
 }
 function let(AujaConfigurator $aujaConfigurator, AujaRouter $aujaRouter, Relation $relation, Model $left, Model $right)
 {
     $this->beConstructedWith($aujaConfigurator, $aujaRouter);
     $this->relations = [$relation];
     $relation->getLeft()->willReturn($left);
     $relation->getRight()->willReturn($right);
     $relation->getType()->willReturn('hasMany');
     $left->getName()->willReturn('Model');
     $right->getName()->willReturn('OtherModel');
     $aujaConfigurator->getModel('Model')->willReturn($left);
     $aujaConfigurator->getRelationsForModel($left)->willReturn([$relation]);
     $aujaConfigurator->getDisplayField($left)->willReturn('name');
     $aujaConfigurator->getIcon($left)->willReturn(null);
     URL::shouldReceive('route');
     Lang::shouldReceive('trans')->with('Add')->andReturn('Add');
     Lang::shouldReceive('trans')->with('Model')->andReturn('Model');
 }