You are here

public function AgreementTestBase::assertUserProfilePage 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::assertUserProfilePage()

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

Parameters

int $uid: The user id.

File

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

Class

AgreementTestBase
Tests the agreement functionality.

Namespace

Drupal\Tests\agreement\Functional

Code

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