Code Duplication    Length = 14-15 lines in 2 locations

tests/GridRowsExtensionTest.php 2 locations

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