You are here

public function GdprUserCollectedDataPageTest::testUsersShouldHaveAccessToOwnPage in General Data Protection Regulation 7

Tests that users have access to their own page.

File

./gdpr.test, line 58
Contains GDPR tests.

Class

GdprUserCollectedDataPageTest
Tests users' data collection pages.

Code

public function testUsersShouldHaveAccessToOwnPage() {
  $this
    ->drupalLogin($this->subject);
  $this
    ->drupalGet(sprintf('user/%d/collected_data', $this->subject->uid));
  $this
    ->assertResponse(200);
}