You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_oneSample.m
    path of file: ./repos/bspm/thirdparty/spm12/toolbox/SnPM13/test
    
    the code of the file until where you have to start completion: % Perform non-regression tests on one sample tests in SnPM. 
% Check that results obtained using the batch vers
    
function create_spm_batch(testCase)
            factoDesign = testCase.spmBatch{1}.spm.stats.factorial_design;
            
            factoDesign.des.t1.scans = factoDesign.P;
            factoDesign = rmfield(factoDesign, 'P');
            
            testCase.spmBatch{1}.spm.stats.factorial_design = factoDesign;
        end