You are here

kaltura_exsiting_partner.test in Kaltura 7.2

Same filename and directory in other branches
  1. 7.3 tests/kaltura_exsiting_partner.test

File

tests/kaltura_exsiting_partner.test
View source

<?php


/**
 * Ensure that the convertion works properly.
 */
class KalturaExistingPartnerTestCase extends DrupalWebTestCase {
  public static function getInfo() {
    return array(
      'name' => 'Existing Partner',
      'description' => 'Add existing partner info',
      'group' => 'Kaltura',
    );
  }
  function setUp() {
    parent::setUp('kaltura');
    $admin_user = $this
      ->drupalCreateUser(array(
      'administer site configuration',
      'administer kaltura',
    ));
    $this
      ->drupalLogin($admin_user);
  }
  function testAddPartner() {
    $this
      ->drupalGet('admin/config/kaltura/general');
    $edit['new_partner'] = 'existing';
    $edit['ex_partner_id'] = '426751';
    $edit['ex_email'] = 'kaltrura@example.com';
    $edit['ex_password'] = 'kalturatests!2';
    $edit['terms'] = TRUE;
    $this
      ->drupalPost(NULL, $edit, t('submit'));
    $this
      ->assertText(t('Your partner details were imported successfully.'), t('Make sure instaltion is complate'));
  }

}

Classes

Namesort descending Description
KalturaExistingPartnerTestCase Ensure that the convertion works properly.