Craft\ImportServiceTest::testRowShouldLogErrorWhenColumnsAndDataDoNotMatch PHP Method

testRowShouldLogErrorWhenColumnsAndDataDoNotMatch() public method

    public function testRowShouldLogErrorWhenColumnsAndDataDoNotMatch()
    {
        $row = 1;
        $historyId = 2;
        $settings = array('map' => array('column1', 'column2', 'column3'), 'history' => $historyId);
        $data = array('row1value1', 'row2', 'value2', 'row3value3');
        $message = array(array(Craft::t('Columns and data did not match, could be due to malformed CSV row.')));
        $this->setMockImportHistoryService($historyId, $row, $message);
        $service = new ImportService();
        $service->row($row, $data, $settings);
    }