Code Duplication    Length = 14-15 lines in 2 locations

tests/GridRowsExtensionTest.php 2 locations

@@ 48-62 (lines=15) @@
45
        }
46
    }
47
48
    public function testSplitDataListFromModelIntoGridRows()
49
    {
50
        $page = $this->objFromFixture('GridRowItemPageTO', 'page001');
51
        $page->doPublish();
52
        $controller = new GridRowItemPageTO_Controller();
53
        $controller->setDataModel($page);
54
55
        for ($columns=1; $columns < 15; $columns++) {
56
            $grid = $controller->SplitDataListIntoGridRows(
57
                'GridRowItems', // method from model
58
                $columns
59
            );
60
            $this->checkGrid($grid, $columns, 10);
61
        }
62
    }
63
64
    public function testSplitDataListFromControllerIntoGridRows()
65
    {
@@ 64-77 (lines=14) @@
61
        }
62
    }
63
64
    public function testSplitDataListFromControllerIntoGridRows()
65
    {
66
        $page = $this->objFromFixture('GridRowItemPageTO', 'page001');
67
        $page->doPublish();
68
        $controller = new GridRowItemPageTO_Controller();
69
        $controller->setDataModel($page);
70
        for ($columns=1; $columns < 15; $columns++) {
71
            $grid = $controller->SplitDataListIntoGridRows(
72
                'GridItems', // method from controller
73
                $columns
74
            );
75
            $this->checkGrid($grid, $columns, 10);
76
        }
77
    }
78
79
    /*
80
    Check multiple number of columns with amounts from 1 to just over the