Download the PHP package portrino/codeception-helper-module without Composer

On this page you can find all versions of the php package portrino/codeception-helper-module. 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 codeception-helper-module

Codeception Helper Module

Build Status MaintainabilityMaintainability Test Coverage Test Coverage Issue Count Latest Stable Version Total Downloads

Collection of modules for codeception acceptance testing with TYPO3 and Shopware. You can use this module as base for your codeception acceptance testsuite. It provides a set of modules, abstract page objects and interfaces to make acceptance testing a bit cleaner and easier in context of TYPO3 and Shopware.

Installation

You need to add the repository into your composer.json file

Modules

You can use module(s) as any other codeception module, by adding '\Codeception\Module\Portrino******' to the enabled modules in your codeception suite configurations.

Database module

Update codeception build

Methods

truncateTableInDatabase($table)

Truncates the $table.

deleteFromDatabase($table, $criteria)

Deletes the row(s) from $table matching the $criteria

TYPO3 module

Update codeception build

Methods

executeCommand

Executes the specified typo3_console $command.

executeSchedulerTask

Executes tasks that are registered in the scheduler module.

flushCache

Flushes TYPO3 core caches first and after that, flushes caches from extensions.

flushCacheGroups

Flushes all caches in specified groups. Valid group names are by default:

importIntoDatabase

Import $file into database.

Shopware module

Update codeception build

Methods

executeCommand

Executes the specified shopware_console $command.

runSqlCommand

Executes SQL query in shopware_console.

activatePlugin

Activates Shopware plugin.

installPlugin

Install Shopware plugin. If activate = true, the plugin will be activated after installation.

refreshPluginList

Refresh Shopware plugin-list. You need to call this sometimes before installing a plugin.

regenerateThemeCache

Regenerates the theme-cache.

clearCache

Clear Shopware cache.

setPluginConfiguration

Set configuration of Shopware plugin by plugin-name, configuration-key and configuration-value.

Interfaces

You should use our constants defined in some interfaces to prevent typos and make refactoring easier.

TYPO3

Example:

Shopware

Fixtures Helper

For the sake of simplicity we added an little Helper for the Codeception Fixture feature.

Please add in your _bootstrap.php file

'__model' => \Portrino\Codeception\Model\Typo3\Typo3FrontendUser::class,

as the first entry in your Fixture array. your Fixture has to look like

now you'll be able to use your Fixture with our adapted Fixtures class

Hints

Use codeception with shopware

Due the fact that shopware only supports some very old versions of packages like guzzlehttp/guzzle or symfony/process, we advise you to put all the testing stuff into a indepented composer.json file under a seperate location like web/tests/Codeception/. Do not add codeception\codeception package into the root composer.json of shopware - you will get trouble.

Autoloading

To autoload vendor packages you have to require_once the autoload.php in your composers _bootstrap.php file.

Authors

See also the list of contributors who participated in this project.


All versions of codeception-helper-module with dependencies

PHP Build Version
Package Version
Requires codeception/codeception Version ~2.3
composer/semver Version ~1.4.2
ocramius/package-versions Version ~1.1.3
symfony/process Version ~3.3.10 || ~2.7
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 portrino/codeception-helper-module contains the following files

Loading the files please wait ....