public function LibrariesAdminWebTest::testLibrariesReportNotSupported in Libraries API 7.2
Tests the libraries report for a missing library.
File
- tests/
LibrariesAdminWebTest.test, line 122 - Contains LibrariesAdminWebTest.
Class
- LibrariesAdminWebTest
- Tests the administrative interface for libraries.
Code
public function testLibrariesReportNotSupported() {
$this
->getWithPermissions(array(
'access library reports',
), 'admin/reports/libraries/example_unsupported_version');
$this
->assertRaw('Status report for library <em class="placeholder">Example unsupported version</em>');
$this
->assertRaw('The installed version <em class="placeholder">1</em> of the <em class="placeholder">Example unsupported version</em> library is not supported.');
// Check that the download link is being displayed.
$this
->assertLinkByHref('http://example.com/download');
}