You are here

public function D3InfoHandlerTest::setUp in d3.js 7

Sets up unit test environment.

Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.

Overrides DrupalUnitTestCase::setUp

File

tests/d3_info_handler.test, line 27

Class

D3InfoHandlerTest
Tests the library info handlers.

Code

public function setUp() {
  parent::setUp();
  $this
    ->enableModule('d3');
  $this->library['machine name'] = 'simpletest_test_library';
  $this->library['simpletest']['rows']['__array_type'] = '2dnnv';
  $this->library['simpletest']['rows']['name'] = '{ type: integer }';
  $this->library['simpletest']['x_axis_color']['__context'] = 'style_settings';
  $this->library['simpletest']['x_axis_title']['field__'] = '{ type: string }';
  $this->controller = d3_get_library_info_handler('simpletest');
}