Download the PHP package eliashaeussler/typo3-codeception-helper without Composer

On this page you can find all versions of the php package eliashaeussler/typo3-codeception-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package typo3-codeception-helper

# TYPO3 Codeception Helper [![Coverage](https://img.shields.io/coverallsCoverage/github/eliashaeussler/typo3-codeception-helper?logo=coveralls)](https://coveralls.io/github/eliashaeussler/typo3-codeception-helper) [![Maintainability](https://img.shields.io/codeclimate/maintainability/eliashaeussler/typo3-codeception-helper?logo=codeclimate)](https://codeclimate.com/github/eliashaeussler/typo3-codeception-helper/maintainability) [![CGL](https://img.shields.io/github/actions/workflow/status/eliashaeussler/typo3-codeception-helper/cgl.yaml?label=cgl&logo=github)](https://github.com/eliashaeussler/typo3-codeception-helper/actions/workflows/cgl.yaml) [![Tests](https://img.shields.io/github/actions/workflow/status/eliashaeussler/typo3-codeception-helper/tests.yaml?label=tests&logo=github)](https://github.com/eliashaeussler/typo3-codeception-helper/actions/workflows/tests.yaml) [![Supported PHP Versions](https://img.shields.io/packagist/dependency-v/eliashaeussler/typo3-codeception-helper/php?logo=php)](https://packagist.org/packages/eliashaeussler/typo3-codeception-helper)

This library provides some helper functions for Codeception tests within TYPO3 extensions. In addition, an application entrypoint modifier extension for coverage collection within acceptance tests is distributed.

🔥 Installation

Packagist Packagist Downloads

⚡ Usage

ApplicationEntrypointModifier extension

Source: Codeception\Extension\ApplicationEntrypointModifier

A Codeception extension that aims to ease the integration effort when collecting code coverage with codeception/c3. It replaces an existing entrypoint (e.g. typo3/index.php) with a modified entrypoint that includes the distributed c3.php file.

Enable this extension in your codeception.yml file:

For each entrypoint, the following config must be provided:

Config name Description Default value
web-dir Relative path from project root to directory that contains the main entrypoint
main-entrypoint Name of the entrypoint to replace (the file being accessed by the web server) index.php
app-entrypoint Name of the original relocated entrypoint (the renamed main entrypoint) app.php

Example

Given the following directory structure:

Once the extension is enabled and properly configured, the following directory structure exists after the test suite is started:

Backend module

Source: Codeception\Module\Backend

A Codeception module that allows to perform actions within TYPO3 backend. It can for example be used to log into the TYPO3 backend.

[!NOTE] This module requires the WebDriver module to be installed and enabled.

Enable this module in your codeception.yml file:

Available methods

login($username, $password): void

Perform backend login for the given user. The user is identified by the given username and is authenticated by the given password.

Example:

loginAs($username): void

Perform backend login for the given user. The user is identified by the given username which must be configured in the codeception module config (see Configure backend users).

Example:

openModule($identifier): void

Open a backend module by clicking on the module link. The module link is identified by a given node identifier. Note that the identifier differs between TYPO3 versions (see example below).

Example:

Configure backend users

[!NOTE] Backend users are not automatically created by this module. You need to take care of that by your own, e.g. by importing static database fixtures before tests are executed.

In order to use the loginAs() method, existing backend users must be configured in the module config section:

🧑‍💻 Contributing

Please have a look at CONTRIBUTING.md.

⭐ License

This project is licensed under GNU General Public License 2.0 (or later).


All versions of typo3-codeception-helper with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0 || ~8.2.0 || ~8.3.0
composer-runtime-api Version ^2.1
codeception/c3 Version ^2.8
codeception/codeception Version ^4.1.11 || ^5.0
symfony/filesystem Version ^5.4 || ^6.0 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eliashaeussler/typo3-codeception-helper contains the following files

Loading the files please wait ....