You are here

public function ResponsiveTablesFilterWebTestCase::test in Responsive Tables Filter 7

The tests.

File

tests/ResponsiveTablesFilter.test, line 36
Tests for responsive_tables_filter module.

Class

ResponsiveTablesFilterWebTestCase
Minimal testing for drupal.org of responsive_tables_filter module.

Code

public function test() {
  $this
    ->drupalGet('admin/config/content/responsive_tables_filter');
  $this
    ->assertResponse(403, 'Anonymous user unable to access configuration page.');
  $user = $this
    ->drupalCreateUser(array(
    'administer views',
  ));
  $user = $this
    ->drupalLogin($user);
  $this
    ->drupalGet('admin/config/content/responsive_tables_filter');
  $this
    ->assertResponse(200, 'User with "administer views" able to access configuration page.');
}