public function ViewsAccessTestCase::testAccessPlugin in Spaces 6.3
Same name and namespace in other branches
- 7.3 tests/spaces.test \ViewsAccessTestCase::testAccessPlugin()
- 7 tests/spaces.test \ViewsAccessTestCase::testAccessPlugin()
File
- tests/
spaces.test, line 461
Class
- ViewsAccessTestCase
- Test for the Views acces plugin
Code
public function testAccessPlugin() {
$this
->drupalLogin($this->basic_user);
$this
->drupalGet('comments/recent');
$this
->assertResponse('403', t('Unauthorized user blocked'));
$this
->drupalLogin($this->admin_user);
$this
->drupalGet('comments/recent');
$this
->assertResponse('200', t('Authorized user allowed'));
}