Tell me, I'm testing Api for codeception. I need to test the method that loads the file using the POST method. Documentation is poor on this. The file itself was put in _data. The test does not work (although it should). Tell me what could be the error


public function saveIdentificationPhotos(ApiTester $I) { $url = '/account/update-identification-photos'; $data = [ 'idDocument' => [ 'name' => 'test_image.jpg', 'type' => 'image/jpeg', 'error' => UPLOAD_ERR_OK, 'size' => filesize(codecept_data_dir('test_image.jpg')), 'tmp_name' => codecept_data_dir('test_image.jpg'), ], 'idDocumentBack' => [ 'name' => 'test_image2.jpg', 'type' => 'image/jpeg', 'error' => UPLOAD_ERR_OK, 'size' => filesize(codecept_data_dir('test_image2.jpg')), 'tmp_name' => codecept_data_dir('test_image2.jpg'), ], 'proofOfResidence' => [ 'name' => 'test_image3.jpg', 'type' => 'image/jpeg', 'error' => UPLOAD_ERR_OK, 'size' => filesize(codecept_data_dir('test_image3.jpg')), 'tmp_name' => codecept_data_dir('test_image3.jpg'), ], 'csrf_token' => $I->getToken(), ]; $I->sendPOST($url, $data); } 

    0