Révision 4f315dab
Ajouté par Assos Assos il y a environ 8 ans
drupal7/sites/all/modules/ds/tests/ds.entities.test | ||
---|---|---|
105 | 105 |
$node = $this->entitiesTestSetup(); |
106 | 106 |
$node_author = user_load($node->uid); |
107 | 107 |
|
108 |
// Test theme_hook_suggestions in ds_entity_variables(). |
|
109 |
$this->drupalGet('node/' . $node->nid, array('query' => array('store' => 1))); |
|
110 |
$cache = cache_get('ds_test'); |
|
111 |
$this->assertTrue(!empty($cache)); |
|
112 |
$hook_suggestions = $cache->data['theme_hook_suggestions']; |
|
113 |
$expected_hook_suggestions = array( |
|
114 |
'node__article', |
|
115 |
'node__1', |
|
116 |
'ds_2col_stacked', |
|
117 |
'ds_2col_stacked__node', |
|
118 |
'ds_2col_stacked__node_full', |
|
119 |
'ds_2col_stacked__node_article', |
|
120 |
'ds_2col_stacked__node_article_full', |
|
121 |
'ds_2col_stacked__node__1' |
|
122 |
); |
|
123 |
$this->assertEqual($hook_suggestions, $expected_hook_suggestions); |
|
124 |
|
|
108 | 125 |
// Look at node and verify token and block field. |
109 | 126 |
$this->drupalGet('node/' . $node->nid); |
110 | 127 |
$this->assertRaw('view-mode-full', 'Template file found (in full view mode)'); |
Formats disponibles : Unified diff
Weekly update of contrib modules