You are here

constant AgreementTest::DEFAULT_AGREEMENT_SETTINGS in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x tests/src/Unit/Entity/AgreementTest.php \Drupal\Tests\agreement\Unit\Entity\AgreementTest::DEFAULT_AGREEMENT_SETTINGS

Default agreement settings from agreement.agreement.default.

@todo Add visibility in Drupal 9 when PHP 5 is non-supported.

@internal

File

tests/src/Unit/Entity/AgreementTest.php, line 22

Class

AgreementTest
Tests methods on the agreement entity.

Namespace

Drupal\Tests\agreement\Unit\Entity

Code

const DEFAULT_AGREEMENT_SETTINGS = [
  'visibility' => [
    'settings' => 0,
    'pages' => [],
  ],
  'roles' => [
    'authenticated',
  ],
  'frequency' => -1,
  'title' => 'Our Agreement',
  'checkbox' => 'I agree.',
  'submit' => 'Submit',
  'success' => 'Thank you for accepting our agreement.',
  'revoked' => 'You have successfully revoked your acceptance of our agreement.',
  'failure' => 'You must accept our agreement to continue.',
  'destination' => '',
  'recipient' => '',
  'reset_date' => 0,
  'format' => 'plain_text',
];