You are here

function KalturaPartnerTestCase::testCreatePartner in Kaltura 7.2

Same name and namespace in other branches
  1. 7.3 tests/kaltura_partner.test \KalturaPartnerTestCase::testCreatePartner()

File

tests/kaltura_partner.test, line 23

Class

KalturaPartnerTestCase
Ensure that adding partner info works properly.

Code

function testCreatePartner() {
  $this
    ->drupalGet('admin/config/kaltura/general');
  $edit['first_name'] = 'name';
  $edit['last_name'] = 'last';
  $edit['email'] = $this
    ->randomname(1) . '@example.com';
  $edit['phone'] = '111111111';
  $edit['company'] = 'autotest';
  $edit['title'] = 'autotestbot';
  $edit['vertical'] = 'Media';
  $edit['country'] = 'IL';
  $edit['would_you_like_to_be_contacted'] = 'no';
  $edit['terms'] = TRUE;
  $this
    ->drupalPost(NULL, $edit, t('submit'));
  $this
    ->assertText(t('Congratulations!'), t('Make sure instaltion is complate'));
}