You are here

public function ImageWidgetCropExamplesTest::testInstalled in Image Widget Crop 8.2

Tests if image_widget_crop_example is correctly installed.

File

modules/image_widget_crop_examples/tests/src/Functional/ImageWidgetCropExamplesTest.php, line 52

Class

ImageWidgetCropExamplesTest
Tests image_widget_crop_examples.

Namespace

Drupal\Tests\image_widget_crop_examples\Functional

Code

public function testInstalled() {
  $this
    ->drupalGet('');
  $this
    ->assertSession()
    ->titleEquals('Image Widget Crop examples | Drupal');
  $this
    ->assertSession()
    ->pageTextContains('Image Widget Crop examples');
  $this
    ->assertSession()
    ->pageTextContains('Welcome to Image Widget Crop example.');
  $this
    ->assertSession()
    ->pageTextContains('Image Widget Crop provides an interface for using the features of the Crop API.');
  $this
    ->assertSession()
    ->pageTextContains('You can test the functionality with custom content types created for the demonstration of features from Image Widget Crop:');
}