manager = DagFileProcessorManager(
            dag_directory="directory",
            max_runs=1,
            processor_timeout=timedelta(days=365),
            signal_conn=MagicMock(),
            dag_ids=[],
            pickle_dags=False,
            async_mode=True,
        )
        mock_processor = MagicMock()
        mock_processor.stop.side_effect = AttributeError("DagFileProcessor object has no attribute stop")
        mock_processor.terminate.side_effect = None
        manager._processors["abc.txt"] = mock_processor
        manager.set_file_paths(["abc.txt"])
        assert manager._processors == {"abc.txt": mock_processor}
    @conf_vars({("scheduler", "file_parsing_sort_mode"): "alphabetical"})
    @mock.patch("zipfile.is_zipfile", return_value=True)
    @mock.patch("airflow.utils.file.might_contain_dag", return_value=True)
    @mock.patch("airflow.utils.file.find_path_from_directory", return_value=True)
    @mock.patch("airflow.utils.file.os.path.isfile", return_value=True)
    def test_file_paths_in_queue_sorted_alphabetically(