'left_table' => 'views_test_data',
'left_field' => 'uid',
'table' => 'users_field_data',
'field' => 'uid',
'adjusted' => TRUE,
];
$join =
$this->manager->
createInstance($this->pluginId,
$configuration);
$this->
assertInstanceOf(FieldOrLanguageJoin::
class,
$join);
$this->
assertNull($join->extra
);
$this->
assertTrue($join->adjusted
);
$join_info =
$this->
buildJoin($view,
$configuration, 'users_field_data'
);
$this->
assertSame($join_info['join type'
], 'LEFT'
);
$this->
assertSame($join_info['table'
],
$configuration['table'
]);
$this->
assertSame($join_info['alias'
], 'users_field_data'
);
$this->
assertSame($join_info['condition'
], 'views_test_data.uid = users_field_data.uid'
);
// Set a different alias and make sure table info is as expected.
$join_info =
$this->
buildJoin($view,
$configuration, 'users1'
);
$this->
assertSame($join_info['alias'
], 'users1'
);
// Set a different join type (INNER) and make sure it is used.
$configuration['type'
] = 'INNER';