You are here

function FileEntityTypeTestCase::testAdminPages in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.test \FileEntityTypeTestCase::testAdminPages()

Test admin pages access and functionality.

File

./file_entity.test, line 1181
Test integration for the file_entity module.

Class

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

Code

function testAdminPages() {

  // Create a user with file type administration access.
  $user = $this
    ->drupalCreateUser(array(
    'administer file types',
  ));
  $this
    ->drupalLogin($user);
  $this
    ->drupalGet('admin/structure/file-types');
  $this
    ->assertResponse(200, 'File types admin page is accessible');
}