'view any unpublished content',
]);
} /**
* Tests the media library widget only shows published media.
*/
public function testAdministrationPage() { // User 1 should be able to see all media items.
$this->
drupalLogin($this->rootUser
);
$this->
drupalGet('admin/content/media'
);
$this->
assertAllMedia();
// The media admin user should be able to see all media items.
$this->
drupalLogin($this->userAdmin
);
$this->
drupalGet('admin/content/media'
);
$this->
assertAllMedia();
// The media viewer user should be able to see only published media items.
$this->
drupalLogin($this->userViewer
);
$this->
drupalGet('admin/content/media'
);
$this->
assertOnlyPublishedMedia();