You are here

function RecommenderTestCase::testBasicFunctions in Recommender API 6.2

File

./recommender.test, line 164

Class

RecommenderTestCase

Code

function testBasicFunctions() {

  // note that simpletest create new db tables with random prefix
  $this
    ->assertEqual(1, Recommender::convertAppId("recommender_test"));
  $this
    ->assertEqual(recommender_get_app_id("recommender_test"), Recommender::convertAppId("recommender_test"));
  $this
    ->assertEqual(2, Recommender::convertAppId('recommender_random'));
  $this
    ->assertEqual(1, Recommender::convertAppId("recommender_test"));
}