public function GdprUserCollectedDataPageTest::testUsersShouldNotHaveAccessToOtherPages in General Data Protection Regulation 7
Tests that users do not have access to each other's pages.
File
- ./
gdpr.test, line 67 - Contains GDPR tests.
Class
- GdprUserCollectedDataPageTest
- Tests users' data collection pages.
Code
public function testUsersShouldNotHaveAccessToOtherPages() {
$this
->drupalLogin($this->observer);
$this
->drupalGet(sprintf('user/%d/collected_data', $this->subject->uid));
$this
->assertResponse(403);
}