/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->linkitProfile = $this->createProfile(); $this->drupalLogin($this->adminUser); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->manager = $this->container->get('plugin.manager.linkit.matcher'); $this->linkitProfile = $this->createProfile(); $this->drupalLogin($this->adminUser); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->drupalLogin($this->adminUser); $this->manager = $this->container->get('plugin.manager.linkit.matcher'); $custom_role = $this->drupalCreateRole(array(), 'custom_role', 'custom_role'); $custom_role_admin = $this->drupalCreateRole(array(), 'custom_role_admin', 'custom_role_admin'); $this->drupalCreateUser([], 'lorem'); $this->drupalCreateUser([], 'foo'); $account = $this->drupalCreateUser([], 'ipsumlorem'); $account->addRole($custom_role); $account->save(); $account = $this->drupalCreateUser([], 'lorem_custom_role'); $account->addRole($custom_role); $account->save(); $account = $this->drupalCreateUser([], 'lorem_custom_role_admin'); $account->addRole($custom_role_admin); $account->save(); $account = $this->drupalCreateUser([], 'blocked_lorem'); $account->block(); $account->save(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->drupalLogin($this->adminUser); $this->manager = $this->container->get('plugin.manager.linkit.matcher'); $type1 = $this->drupalCreateContentType(['type' => 'test1', 'name' => 'Test1']); $type2 = $this->drupalCreateContentType(['type' => 'test2', 'name' => 'Test2']); // Nodes with type 1. $this->drupalCreateNode(['title' => 'Lorem Ipsum 1', 'type' => $type1->id()]); $this->drupalCreateNode(['title' => 'Lorem Ipsum 2', 'type' => $type1->id()]); // Nodes with type 1. $this->drupalCreateNode(['title' => 'Lorem Ipsum 3', 'type' => $type2->id()]); // Unpublished node. $this->drupalCreateNode(['title' => 'Lorem unpublishd', 'type' => $type1->id(), 'status' => FALSE]); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->drupalLogin($this->adminUser); $this->manager = $this->container->get('plugin.manager.linkit.matcher'); $testing_vocabulary_1 = $this->createVocabulary('testing_vocabulary_1'); $testing_vocabulary_2 = $this->createVocabulary('testing_vocabulary_2'); $this->createTerm($testing_vocabulary_1, ['name' => 'foo_bar']); $this->createTerm($testing_vocabulary_1, ['name' => 'foo_baz']); $this->createTerm($testing_vocabulary_1, ['name' => 'foo_foo']); $this->createTerm($testing_vocabulary_1, ['name' => 'bar']); $this->createTerm($testing_vocabulary_2, ['name' => 'foo_bar']); $this->createTerm($testing_vocabulary_2, ['name' => 'foo_baz']); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->drupalLogin($this->adminUser); }