1 file.test FileTypeTestCase::testAdminPages()

Test admin pages access and functionality.

File

core/modules/file/tests/file.test, line 2668
Tests for file.module.

Class

FileTypeTestCase
Tests adding support for bundles to the core 'file' entity.

Code

function testAdminPages() {
  // Create a user with file type administration access.
  $user = $this->backdropCreateUser(array('administer file types'));
  $this->backdropLogin($user);

  $this->backdropGet('admin/structure/file-types');
  $this->assertResponse(200, 'File types admin page is accessible');
}