You are here

public function AgreementTestBase::assertUserProfileEditPage in Agreement 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/AgreementTestBase.php \Drupal\Tests\agreement\Functional\AgreementTestBase::assertUserProfileEditPage()

Asserts that the current page is a user's profile.

Parameters

int $uid: The user id.

File

tests/src/Functional/AgreementTestBase.php, line 195

Class

AgreementTestBase
Tests the agreement functionality.

Namespace

Drupal\Tests\agreement\Functional

Code

public function assertUserProfileEditPage($uid = 0) {
  $this
    ->assertStringEndsWith('/user/' . $uid . '/edit', $this
    ->getUrl());
}