public function FileAdminOptionsTestCase::testOptionsPresent in File admin 7
File
- tests/
file_admin.test, line 40 - Tests for file_admin.module.
Class
Code
public function testOptionsPresent() {
$this
->drupalGet('file/add');
$real_path = realpath('misc/druplicon.png');
$edit = array(
'files[upload]' => $real_path,
);
// Step 1: Upload file
$this
->drupalPost('file/add', $edit, t('Upload'));
// Step 2: Submit file
$this
->drupalPost(NULL, array(), 'Next');
// Step 3: Private/public
$this
->drupalPost(NULL, array(), 'Next');
$this
->assertText('Workflow', 'Workflow options were found');
}