function FileEntityTypeTestCase::testAdminPages in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 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');
}