You are here

protected function FileTestBase::setUp in Ubercart 8.4

Overrides UbercartBrowserTestBase::setUp

1 call to FileTestBase::setUp()
FileCheckoutTest::setUp in uc_file/tests/src/Functional/FileCheckoutTest.php
1 method overrides FileTestBase::setUp()
FileCheckoutTest::setUp in uc_file/tests/src/Functional/FileCheckoutTest.php

File

uc_file/tests/src/Functional/FileTestBase.php, line 27

Class

FileTestBase
Base class for file download feature tests.

Namespace

Drupal\Tests\uc_file\Functional

Code

protected function setUp() {
  parent::setUp();

  // Need admin permissions in order to change file download settings.
  $this
    ->drupalLogin($this->adminUser);

  // Set up directory for files to live in.
  $this
    ->configureDownloadDirectory();

  // Load one test file so we always have something to download.
  // Use the Ubercart README.txt because we know it will always be there
  // and we know in advance how big it is.
  $filename = drupal_get_path('module', 'uc_file') . '/../README.txt';
  $this
    ->setTestFile($filename);
}