Drupal 8  8.0.2
LocalTaskIntegrationTestBase Class Reference
Inheritance diagram for LocalTaskIntegrationTestBase:

Protected Member Functions

 setUp ()
 
 getLocalTaskManager ($module_dirs, $route_name, $route_params)
 
 assertLocalTasks ($route_name, $expected_tasks, $route_params=array())
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $directoryList
 
 $moduleHandler
 
 $container
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Additional Inherited Members

- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Detailed Description

Defines a base unit test for testing existence of local tasks.

Todo:
Add tests for access checking and url building, https://www.drupal.org/node/2112245.

Member Function Documentation

assertLocalTasks (   $route_name,
  $expected_tasks,
  $route_params = array() 
)
protected

Tests integration for local tasks.

Parameters
$route_nameRoute name to base task building on.
$expected_tasksA list of tasks groups by level expected at the given route
array$route_params(optional) a list of route parameters used to resolve tasks.

References LocalTaskIntegrationTestBase\getLocalTaskManager(), and Drupal\root().

Referenced by ActionLocalTasksTest\testActionLocalTasks(), AggregatorLocalTasksTest\testAggregatorAdminLocalTasks(), AggregatorLocalTasksTest\testAggregatorSourceLocalTasks(), ContentTranslationLocalTasksTest\testBlockAdminDisplay(), BlockLocalTasksTest\testBlockAdminDisplay(), BlockLocalTasksTest\testBlockAdminLocalTasks(), BlockContentLocalTasksTest\testBlockContentListLocalTasks(), BookLocalTasksTest\testBookAdminLocalTasks(), BookLocalTasksTest\testBookNodeLocalTasks(), ConfigLocalTasksTest\testConfigAdminLocalTasks(), LanguageLocalTasksTest\testLanguageAdminLocalTasks(), LanguageLocalTasksTest\testLanguageEditLocalTasks(), LocaleLocalTasksTest\testLocalePageLocalTasks(), ShortcutLocalTasksTest\testShortcutPageLocalTasks(), SystemLocalTasksTest\testSystemAdminLocalTasks(), TaxonomyLocalTasksTest\testTaxonomyPageLocalTasks(), UpdateLocalTasksTest\testUpdateModuleLocalTasks(), UpdateLocalTasksTest\testUpdateReportLocalTasks(), UpdateLocalTasksTest\testUpdateThemeLocalTasks(), UserLocalTasksTest\testUserAdminLocalTasks(), UserLocalTasksTest\testUserLoginLocalTasks(), and UserLocalTasksTest\testUserPageLocalTasks().

Here is the call graph for this function:

Here is the caller graph for this function:

getLocalTaskManager (   $module_dirs,
  $route_name,
  $route_params 
)
protected

Sets up the local task manager for the test.

Referenced by LocalTaskIntegrationTestBase\assertLocalTasks().

Here is the caller graph for this function:

setUp ( )
protected

{}

References UnitTestCase\getConfigFactoryStub(), Drupal\root(), and Drupal\setContainer().

Here is the call graph for this function:


The documentation for this class was generated from the following file: