You are here

protected function MassContactCategoryTest::setUp in Mass Contact 8

Overrides MassContactTestBase::setUp

File

tests/src/Kernel/Entity/MassContactCategoryTest.php, line 32

Class

MassContactCategoryTest
Kernel tests for the mass contact category entity.

Namespace

Drupal\Tests\mass_contact\Kernel\Entity

Code

protected function setUp() {
  parent::setUp();
  foreach ([
    'foo',
    'bar',
    'baz',
  ] as $rid) {
    $this->roles[$rid] = Role::load($this
      ->createRole([], $rid, ucfirst($rid)));
  }
}