function ViewsHandlerRelationshipNodeTermDataTest::setUp

Overrides ViewsSqlTest::setUp

File

tests/taxonomy/views_handler_relationship_node_term_data.test, line 41

Class

ViewsHandlerRelationshipNodeTermDataTest
Tests the relationship_node_term_data handler.

Code

public function setUp(array $modules = array()) {
    parent::setUp($modules);
    // $web_user = $this->drupalCreateUser(array('create article content'));
    // $this->drupalLogin($web_user);
    $vocabulary = taxonomy_vocabulary_machine_name_load('tags');
    $this->term_1 = $this->createTerm($vocabulary);
    $this->term_2 = $this->createTerm($vocabulary);
    $node = array();
    $node['type'] = 'article';
    $node['field_tags'][LANGUAGE_NONE][]['tid'] = $this->term_1->tid;
    $node['field_tags'][LANGUAGE_NONE][]['tid'] = $this->term_2->tid;
    $this->node = $this->drupalCreateNode($node);
}