You are here

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

Tests that anonymous users do not have access to these pages.

File

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

Class

GdprUserCollectedDataPageTest
Tests users' data collection pages.

Code

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