function EntityFormTest::testAddPageWithMultipleParameters

Same name in other branches
  1. 10 core/modules/system/tests/src/Functional/Entity/EntityFormTest.php \Drupal\Tests\system\Functional\Entity\EntityFormTest::testAddPageWithMultipleParameters()

Tests the route add-page with multiple parameters.

File

core/modules/system/tests/src/Functional/Entity/EntityFormTest.php, line 245

Class

EntityFormTest
Tests the entity form.

Namespace

Drupal\Tests\system\Functional\Entity

Code

public function testAddPageWithMultipleParameters() : void {
    $this->drupalGet('entity_test_add_page/' . $this->webUser
        ->id() . '/add');
    $this->assertSession()
        ->statusCodeEquals(200);
    $this->assertSession()
        ->pageTextContains('Add entity test route add page');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.