You are here

protected function ImageWidgetCropTest::setUp in Image Widget Crop 8

Prepares environment for the tests.

Overrides WebTestBase::setUp

File

src/Tests/ImageWidgetCropTest.php, line 43

Class

ImageWidgetCropTest
Minimal test case for the image_widget_crop module.

Namespace

Drupal\image_widget_crop\Tests

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',
    'edit any image files',
    'administer files',
  ]);
  $this
    ->drupalLogin($this->user);
}