Skip to content

Commit

Permalink
Add missing test deps and test skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpepper committed Oct 21, 2014
1 parent 64a5ee5 commit d173233
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Tests/AliasType/NodeAliasTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NodeAliasTest extends KernelTestBase {
*
* @var array
*/
public static $modules = array('pathauto','path');
public static $modules = array('pathauto','path', 'node', 'user');

/**
*
Expand All @@ -30,8 +30,13 @@ public function testNodeAlias() {
/** @var \Drupal\pathauto\AliasTypeManager $manager */
$manager = $this->container->get('plugin.manager.alias_type');
$definitions = $manager->getDefinitions();
$node_type = $manager->createInstance('node');

/** @var \Drupal\pathauto\AliasTypeInterface $node_type */
$node_type = $manager->createInstance('node');
$patterns = $node_type->getPatterns();
$token_types = $node_type->getTokenTypes();
$label = $node_type->getLabel();
$description = $node_type->getPatternDescription();
}

}

0 comments on commit d173233

Please sign in to comment.