Example #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->badExtension = 'php';
     $this->name = $this->randomMachineName() . '.' . $this->badExtension . '.txt';
     $this->nameWithUcExt = $this->randomMachineName() . '.' . strtoupper($this->badExtension) . '.txt';
 }
Example #2
0
 function setUp()
 {
     parent::setUp();
     $this->bad_extension = 'php';
     $this->name = $this->randomName() . '.' . $this->bad_extension . '.txt';
     $this->name_with_uc_ext = $this->randomName() . '.' . strtoupper($this->bad_extension) . '.txt';
 }
Example #3
0
 protected function setUp()
 {
     parent::setUp();
     // Hardcode the location of the simpletest files as it is already known
     // and shouldn't change, and we don't yet have a way to retrieve their
     // location from drupal_get_filename() in a cached way.
     // @todo Remove as part of https://www.drupal.org/node/2186491
     $this->path = 'core/modules/simpletest/files';
 }
Example #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->path = drupal_get_path('module', 'simpletest') . '/files';
 }
Example #5
0
 function setUp()
 {
     parent::setUp();
     $this->bad_extension = 'php';
     $this->name = $this->randomName() . '.' . $this->bad_extension . '.txt';
 }