You are here

public function FivestarBaseTestCase::setUp in Fivestar 8

Same name and namespace in other branches
  1. 7.2 test/fivestar.base.test \FivestarBaseTestCase::setUp()

File

test/fivestar.base.test, line 27
Based test file for the Fivestar module.

Class

FivestarBaseTestCase

Code

public function setUp() {
  parent::setUp([
    'fivestar',
    'dblog',
  ]);
  $type = $this
    ->drupalCreateContentType([
    'type' => 'test_node_type',
    'name' => 'test_node_type',
  ]);
  $this->admin_user = $this
    ->drupalCreateUser([
    'create test_node_type content',
    'rate content',
  ]);
  $this->voter_user = $this
    ->drupalCreateUser([
    'rate content',
  ]);
}