You are here

AgreementBypassUserTest.php in Agreement 3.0.x

Same filename and directory in other branches
  1. 8.2 tests/src/Functional/AgreementBypassUserTest.php

File

tests/src/Functional/AgreementBypassUserTest.php
View source
<?php

namespace Drupal\Tests\agreement\Functional;


/**
 * Tests the bypass agreement permission.
 *
 * @group agreement
 */
class AgreementBypassUserTest extends AgreementTestBase {

  /**
   * Asserts no agreement for a user with the "bypass agreement" permission.
   */
  public function testAgreement() {
    $account = $this
      ->drupalCreateUser([
      'bypass agreement',
      'access content',
    ]);
    $this
      ->drupalLogin($account);
    $this
      ->assertNotAgreementPage($this->agreement);
  }

}

Classes

Namesort descending Description
AgreementBypassUserTest Tests the bypass agreement permission.