You are here

public function FocalPointWidgetTest::setUp in Focal Point 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/FocalPointWidgetTest.php, line 33

Class

FocalPointWidgetTest
Tests that the Focal Point widget works properly.

Namespace

Drupal\Tests\focal_point\Functional

Code

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

  // Create an article content type that we will use for testing.
  $type = $this->container
    ->get('entity_type.manager')
    ->getStorage('node_type')
    ->create([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $type
    ->save();
  $this->container
    ->get('router.builder')
    ->rebuild();
}