You are here

protected function ImageWidgetCropTest::setUp in Image Widget Crop 8.2

Prepares environment for the tests.

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/ImageWidgetCropTest.php, line 49

Class

ImageWidgetCropTest
Minimal test case for the image_widget_crop module.

Namespace

Drupal\Tests\image_widget_crop\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'name' => 'Crop test',
    'type' => 'crop_test',
  ]);
  $this->user = $this
    ->createUser([
    'access content overview',
    'administer content types',
    'edit any crop_test content',
  ]);
  $this
    ->drupalLogin($this->user);
}