public function AgreementTestBase::assertUserProfilePage in Agreement 3.0.x
Same name and namespace in other branches
- 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\FunctionalCode
public function assertUserProfilePage($uid = 0) {
$this
->assertStringEndsWith('/user/' . $uid, $this
->getUrl());
}