1 system.test SystemAuthorizeCase::testFileTransferHooks()

Tests the FileTransfer hooks

File

core/modules/system/tests/system.test, line 2553
Tests for system.module.

Class

SystemAuthorizeCase
Tests authorize.php and related hooks.

Code

function testFileTransferHooks() {
  $page_title = $this->randomName(16);
  $this->backdropGetAuthorizePHP($page_title);
  $this->assertTitle(strtr('@title | Backdrop CMS', array('@title' => $page_title)), 'authorize.php page title is correct.');
  $this->assertNoText('It appears you have reached this page in error.');
  $this->assertText('To continue, provide your server connection details');
  // Make sure we see the new connection method added by system_test.
  $this->assertRaw('System Test FileTransfer');
  // Make sure the settings form callback works.
  $this->assertText('System Test Username');
}