1 installer.test public InstallerBrowserAdministrationTestCase::testProjectBrowserProjects()

File

core/modules/installer/tests/installer.test, line 41

Class

InstallerBrowserAdministrationTestCase
Administration tests for Project Browser.

Code

public function testProjectBrowserProjects() {
  // Attempt to fetch the default projects.
  $edit = array();
  $edit['search_text'] = '';
  $this->backdropPost('admin/modules/install', $edit, t('Search'));
  $this->assertText(t('Showing 1 to'), 'Module browser loaded');

  $edit = array();
  $edit['search_text'] = '';
  $this->backdropPost('admin/appearance/install', $edit, t('Search'));
  $this->assertText(t('Showing 1 to'), 'Theme browser loaded');

  $edit = array();
  $edit['search_text'] = '';
  $this->backdropPost('admin/structure/layouts/install', $edit, t('Search'));
  $this->assertText(t('Showing 1 to'), 'Layout browser loaded');
}