You are here

protected function BarcodeBlockTest::setUp in Barcodes 2.0.x

Overrides BrowserTestBase::setUp

File

tests/src/Functional/BarcodeBlockTest.php, line 42

Class

BarcodeBlockTest
Tests the Barcodes module block functionality.

Namespace

Drupal\Tests\barcodes\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->block = $this
    ->drupalPlaceBlock('barcode');

  // Set the front page so we aren't automatically redirected to /user/login.
  $this
    ->config('system.site')
    ->set('page.front', '/node')
    ->save();
}