/**
  * @param string $selectFieldName
  * @param string $expected
  *
  * @dataProvider targetJoinAliasDataProvider
  */
 public function testGetTargetJoinAlias($selectFieldName, $expected)
 {
     $this->assertEquals($expected, $this->provider->getTargetJoinAlias(null, null, $selectFieldName));
 }
 /**
  * @param string $className
  * @return array
  */
 protected function getLastContactedAtFieldQuery($className)
 {
     $relationData = $this->relationProvider->getRelationDefinition($className);
     $itemAlias = MarketingListVirtualRelationProvider::MARKETING_LIST_ITEM_RELATION_NAME;
     return ['select' => ['expr' => $itemAlias . '.lastContactedAt', 'label' => 'orocrm.marketinglist.marketinglistitem.last_contacted_at.label', 'return_type' => 'datetime'], 'join' => $relationData['query']['join']];
 }