private function RecommenderTestCase::getApps in Recommender API 7.4
Same name and namespace in other branches
- 6.3 recommender.test \RecommenderTestCase::getApps()
- 7.3 recommender.test \RecommenderTestCase::getApps()
- 7.5 recommender.test \RecommenderTestCase::getApps()
1 call to RecommenderTestCase::getApps()
- RecommenderTestCase::setUp in ./
recommender.test - Sets up a Drupal site for running functional and integration tests.
File
- ./
recommender.test, line 40
Class
Code
private function getApps() {
return array(
'test_item2item' => array(
'title' => t('Test recommender item2item'),
'params' => array(
'algorithm' => 'item2item',
'table' => '{recommender_preference_staging}',
'fields' => array(
'source_eid',
'target_eid',
'score',
'updated',
),
'entity_type' => array(
'similarity' => array(
'node',
'node',
),
'prediction' => array(
'users',
'node',
),
),
'performance' => 'memory',
'preference' => 'score',
),
),
'test_user2user' => array(
'title' => t('Test recommender user2user'),
'params' => array(
'algorithm' => 'user2user',
'table' => '{recommender_preference_staging}',
'fields' => array(
'source_eid',
'target_eid',
'score',
'updated',
),
'entity_type' => array(
'similarity' => array(
'node',
'node',
),
'prediction' => array(
'users',
'node',
),
),
'performance' => 'database',
'preference' => 'score',
),
),
);
}