function FileValidatorTest::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
simpletest/ tests/ file.test, line 377
Class
- FileValidatorTest
- This will run tests against the file validation functions (file_validate_*).
Code
function setUp() {
parent::setUp();
$this->image = new stdClass();
$this->image->uri = 'misc/druplicon.png';
$this->image->filename = drupal_basename($this->image->uri);
$this->non_image = new stdClass();
$this->non_image->uri = 'misc/jquery.js';
$this->non_image->filename = drupal_basename($this->non_image->uri);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.