You are here

public function LibrariesAdminWebTest::testLibrariesReportInstalled in Libraries API 7.2

Tests the libraries report for an installed library.

File

tests/LibrariesAdminWebTest.test, line 86
Contains LibrariesAdminWebTest.

Class

LibrariesAdminWebTest
Tests the administrative interface for libraries.

Code

public function testLibrariesReportInstalled() {
  $this
    ->getWithPermissions(array(
    'access library reports',
  ), 'admin/reports/libraries/example_files');
  $this
    ->assertRaw('Status report for library <em class="placeholder">Example files</em>');
  $this
    ->assertRaw('The <em class="placeholder">Example files</em> library is installed correctly.');

  // Check that the information in the status report is displayed.
  $this
    ->assertText('Example files');
  $this
    ->assertText('example_files');
  $this
    ->assertRaw('<em class="placeholder">Libraries test module</em> module');
  $this
    ->assertText(drupal_get_path('module', 'libraries') . '/tests/libraries/example');
  $this
    ->assertText('1');
}