public function KalturaPartnerTestCase::testCreatePartner in Kaltura 7.3
Same name and namespace in other branches
- 7.2 tests/kaltura_partner.test \KalturaPartnerTestCase::testCreatePartner()
Tests creating a new partner.
File
- tests/
kaltura_partner.test, line 37 - Tests functionality for creating partners.
Class
- KalturaPartnerTestCase
- Ensure that adding partner info works properly.
Code
public function testCreatePartner() {
$this
->drupalGet('admin/config/media/kaltura');
$edit['first_name'] = 'name';
$edit['last_name'] = 'last';
$edit['email'] = $this
->randomname(16) . '@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('save'));
$this
->assertText(t('Congratulations! You have successfully installed the Kaltura Video Module and registered for a Kaltura Partner ID. Now you may want to <a href="/admin/config/media/kaltura/entries/import">import all media entries from Kaltura</a>.'), t('Make sure the installation is complete'));
}