updated contrib modules
This commit is contained in:
@@ -78,6 +78,7 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$expected = array();
|
||||
$expected['Job: Singer'] = array();
|
||||
$expected['Job: Singer']['group'] = 'Job: Singer';
|
||||
$expected['Job: Singer']['level'] = '0';
|
||||
$expected['Job: Singer']['rows'][0] = new StdClass();
|
||||
$expected['Job: Singer']['rows'][0]->views_test_name = 'John';
|
||||
$expected['Job: Singer']['rows'][0]->views_test_job = 'Singer';
|
||||
@@ -88,6 +89,7 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$expected['Job: Singer']['rows'][1]->views_test_id = '2';
|
||||
$expected['Job: Drummer'] = array();
|
||||
$expected['Job: Drummer']['group'] = 'Job: Drummer';
|
||||
$expected['Job: Drummer']['level'] = '0';
|
||||
$expected['Job: Drummer']['rows'][2] = new StdClass();
|
||||
$expected['Job: Drummer']['rows'][2]->views_test_name = 'Ringo';
|
||||
$expected['Job: Drummer']['rows'][2]->views_test_job = 'Drummer';
|
||||
@@ -161,8 +163,10 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$expected = array();
|
||||
$expected['Job: Singer'] = array();
|
||||
$expected['Job: Singer']['group'] = 'Job: Singer';
|
||||
$expected['Job: Singer']['level'] = 0;
|
||||
$expected['Job: Singer']['rows']['Age: 25'] = array();
|
||||
$expected['Job: Singer']['rows']['Age: 25']['group'] = 'Age: 25';
|
||||
$expected['Job: Singer']['rows']['Age: 25']['level'] = 1;
|
||||
$expected['Job: Singer']['rows']['Age: 25']['rows'][0] = new StdClass();
|
||||
$expected['Job: Singer']['rows']['Age: 25']['rows'][0]->views_test_name = 'John';
|
||||
$expected['Job: Singer']['rows']['Age: 25']['rows'][0]->views_test_job = 'Singer';
|
||||
@@ -170,6 +174,7 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$expected['Job: Singer']['rows']['Age: 25']['rows'][0]->views_test_id = '1';
|
||||
$expected['Job: Singer']['rows']['Age: 27'] = array();
|
||||
$expected['Job: Singer']['rows']['Age: 27']['group'] = 'Age: 27';
|
||||
$expected['Job: Singer']['rows']['Age: 27']['level'] = 1;
|
||||
$expected['Job: Singer']['rows']['Age: 27']['rows'][1] = new StdClass();
|
||||
$expected['Job: Singer']['rows']['Age: 27']['rows'][1]->views_test_name = 'George';
|
||||
$expected['Job: Singer']['rows']['Age: 27']['rows'][1]->views_test_job = 'Singer';
|
||||
@@ -177,15 +182,16 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$expected['Job: Singer']['rows']['Age: 27']['rows'][1]->views_test_id = '2';
|
||||
$expected['Job: Drummer'] = array();
|
||||
$expected['Job: Drummer']['group'] = 'Job: Drummer';
|
||||
$expected['Job: Drummer']['level'] = 0;
|
||||
$expected['Job: Drummer']['rows']['Age: 28'] = array();
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['group'] = 'Age: 28';
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['level'] = 1;
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['rows'][2] = new StdClass();
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['rows'][2]->views_test_name = 'Ringo';
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['rows'][2]->views_test_job = 'Drummer';
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['rows'][2]->views_test_age = '28';
|
||||
$expected['Job: Drummer']['rows']['Age: 28']['rows'][2]->views_test_id = '3';
|
||||
|
||||
|
||||
// Alter the results to support the stripped case.
|
||||
if ($stripped) {
|
||||
|
||||
@@ -206,7 +212,6 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$view->style_plugin->options['grouping'][1] = array('field' => 'age', 'rendered' => TRUE, 'rendered_strip' => TRUE);
|
||||
}
|
||||
|
||||
|
||||
// The newer api passes the value of the grouping as well.
|
||||
$sets_new_rendered = $view->style_plugin->render_grouping($view->result, $view->style_plugin->options['grouping'], TRUE);
|
||||
|
||||
@@ -261,4 +266,5 @@ class ViewsPluginStyleTestCase extends ViewsPluginStyleTestBase {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -17,6 +17,9 @@ class viewsPluginStyleJumpMenuTest extends ViewsSqlTest {
|
||||
*/
|
||||
var $nodes;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Jump menu',
|
||||
@@ -25,7 +28,9 @@ class viewsPluginStyleJumpMenuTest extends ViewsSqlTest {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
$this->nodes = array();
|
||||
@@ -37,7 +42,6 @@ class viewsPluginStyleJumpMenuTest extends ViewsSqlTest {
|
||||
$this->nodeTitles = array($this->nodes['page'][0]->title, $this->nodes['page'][1]->title, $this->nodes['story'][0]->title, $this->nodes['story'][1]->title);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tests jump menues with more then one same path but maybe differnet titles.
|
||||
*/
|
||||
@@ -46,7 +50,8 @@ class viewsPluginStyleJumpMenuTest extends ViewsSqlTest {
|
||||
$view->set_display();
|
||||
$view->init_handlers();
|
||||
|
||||
// Setup a [path] which would leed to "duplicate" paths, but still the shouldn't be used for grouping.
|
||||
// Setup a [path] which would leed to "duplicate" paths, but still the
|
||||
// shouldn't be used for grouping.
|
||||
$view->field['nothing']->options['alter']['text'] = '[path]';
|
||||
$view->preview();
|
||||
$form = $view->style_plugin->render($view->result);
|
||||
@@ -65,8 +70,11 @@ class viewsPluginStyleJumpMenuTest extends ViewsSqlTest {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function getJumpMenuView() {
|
||||
$view = new view;
|
||||
$view = new view();
|
||||
$view->name = 'test_jump_menu';
|
||||
$view->description = '';
|
||||
$view->tag = 'default';
|
||||
@@ -148,4 +156,5 @@ class viewsPluginStyleJumpMenuTest extends ViewsSqlTest {
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ class ViewsPluginStyleMappingTest extends ViewsPluginStyleTestBase {
|
||||
|
||||
protected function viewsPlugins() {
|
||||
return array(
|
||||
'style' => array(
|
||||
'style' => array(
|
||||
'test_mapping' => array(
|
||||
'title' => t('Field mapping'),
|
||||
'help' => t('Maps specific fields to specific purposes.'),
|
||||
|
@@ -42,7 +42,7 @@ class ViewsPluginStyleUnformattedTestCase extends ViewsPluginStyleTestBase {
|
||||
if ($count == 1) {
|
||||
$this->assertTrue(strpos($class, "views-row-first") !== FALSE, 'Take sure that the first class is set right.');
|
||||
}
|
||||
else if ($count == $count_result) {
|
||||
elseif ($count == $count_result) {
|
||||
$this->assertTrue(strpos($class, "views-row-last") !== FALSE, 'Take sure that the last class is set right.');
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user