Commit b925d4a4 authored by catch's avatar catch
Browse files

Issue #2072609 by legolasbo: Remove Unused local variable from...

Issue #2072609 by legolasbo: Remove Unused local variable  from /core/modules/views/lib/Drupal/views/Tests/ModuleTest.php.
parent 72a600a1
......@@ -206,8 +206,8 @@ public function testLoadFunctions() {
// Test the $opt_group parameter.
$expected_opt_groups = array();
foreach ($all_views as $id => $view) {
foreach ($view->get('display') as $display_id => $display) {
foreach ($all_views as $view) {
foreach ($view->get('display') as $display) {
$expected_opt_groups[$view->id()][$view->id() . ':' . $display['id']] = t('@view : @display', array('@view' => $view->id(), '@display' => $display['id']));
}
}
......@@ -287,8 +287,8 @@ public function testViewsPluginList() {
*/
protected function formatViewOptions(array $views = array()) {
$expected_options = array();
foreach ($views as $id => $view) {
foreach ($view->get('display') as $display_id => $display) {
foreach ($views as $view) {
foreach ($view->get('display') as $display) {
$expected_options[$view->id() . ':' . $display['id']] = t('View: @view - Display: @display',
array('@view' => $view->id(), '@display' => $display['id']));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment