Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TYPO3/testing-framework
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9.1.1
Choose a base ref
...
head repository: TYPO3/testing-framework
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9.1.2
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 5, 2024

  1. [TASK] Allow defining test instance files copy for acceptance tests

    Running acceptance tests with codeception on a created
    test instance with a real `Apache2` webserver requires
    to have the `.htaccess` files in place, otherwise the
    required rewriting to the endpoints will not work.
    
    Since TYPO3 v13 with droppend backend entrypoint this
    grows to a even higher requirement.
    
    TYPO3 monorepo implemented that directly within the
    extended `BackendEnvironment` class.
    
    To make the live for developers easier using the
    `typo3/testing-framework` for project or extension
    acceptance testing a new tooling is now added based
    on the direct monorepo implementation.
    
    Following `BackendEnvironment::$config[]` options are
    now available:
    
    * `'copyInstanceFiles' => [],` (`array<string, string[]>`)
      to copy the soureFile to all listed target paths.
    * `'copyInstanceFilesCreateTargetPath' => true,` to
      configure if target folders should be created when
      missing or throw a excetion.
    
    `BackendEnvironment` applies default files to copy based on
    available core extensions:
    
    * `EXT:backend`
      source.: 'typo3/sysext/backend/Resources/Public/Icons/favicon.ico'
      targets:
        - 'favicon.ico'
    
    * `EXT:install`
      source.: 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess'
      targets:
        - '.htaccess'
    
      source.: 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/fileadmin-temp-htaccess'
      targets:
        - 'fileadmin/_temp_/.htaccess'
    
      source.: 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/fileadmin-temp-index.html'
      targets:
       - 'fileadmin/_temp_/index.html'
    
      source.: 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/typo3temp-var-htaccess'
      targets:
        . 'typo3temp/var/.htaccess',
    
    That way, additional files could be defined and configured
    instead of implementing custom code in the extended class.
    
    Note that files are always provided, which does not hurt
    when not using `Apache2` as acceptance instance webserver.
    
    Releases: main, 8
    sbuerk committed Dec 5, 2024
    Configuration menu
    Copy the full SHA
    e9c3bc4 View commit details
    Browse the repository at this point in the history
Loading