You are here

public function DashboardTest::testDashboardBlock in farmOS 2.x

Test that custom blocks are added to the dashboard.

File

modules/core/ui/dashboard/tests/src/Functional/DashboardTest.php, line 43

Class

DashboardTest
Tests the farmOS dashboard functionality.

Namespace

Drupal\Tests\farm_ui_dashboard\Functional

Code

public function testDashboardBlock() {
  $this
    ->drupalGet('/dashboard');
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // Assert that the test block was added.
  $this
    ->assertSession()
    ->pageTextContains('This is the dashboard test block.');
}