Download the PHP package ctasca/magefix without Composer

On this page you can find all versions of the php package ctasca/magefix. 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 magefix

Magefix - Magento's Behat Fixtures Library

A library to facilitate the creation of Magento fixtures for BehatMage. The following fixture types are currently available:

Scrutinizer Code Quality Build Status

Please follow the below steps to get started, if you encounter any issues installing please check the Common Issues section first.

Installation

1) Add Magefix to your composer.json

Add the following to your composer.json:

2) Create the FixtureLocator

Create the FixtureLocator class in features/fixtures directory. This class has to provide a concrete implementation for the getLocation() method specified in Magefix\Parser\ResourceLocator interface.

The getLocation method should return the path to the yml fixtures files. IMPORTANT: Make sure to end the path with a forward slash.

Here is an example of a ResourceLocator:

3) Autoload FixtureLocator and feature/fixtures

In your composer.json add the following:

Run composer dump-autoload or composer dumpautoload to regenerate autoload file.

NOTE: More than one FixtureLocator could be created. This depends mainly on a project requirements. To use different fixture locators please refer to the Creating Fixtures and Using Many Locators sections.

Creating Fixtures

1) Create fixture yml

In the chosen fixture location, create a yml file containing the fixture definition. Examples of fixture's yml files can be found in project's examples directory.

Here is an example for a Magento simple product fixture:

2) Create Fixture's Data Provider

Most fixture nodes in fixtures's yml file can define dynamically generated values with the syntax {{DATA_PROVIDER_METHOD}}. This means the value for the node will be dynamically assigned via the given Data Provider when the fixture's yml is parsed.

Simply, Data Providers are data-objects and should be added to the features/fixtures directory and provide any method specified in the fixture's yml being parsed. A ProviderMethodNotFound exception is thrown if specified Data Provider does not have one or more methods as part of their protocol.

It is possible to switch data provider in scope in a fixtures's yml definitions, thus allowing to re-use existing data providers. For example, when creating a Sales Order fixture, we may want to also create a product and customer fixture.

An example of a Data Provider:

3) Create Fixture in Behat's Feature class

To build the fixture during Behat run, edit the required Feature Context file and do the following:

1) Add use statement and include Fixtures Registry and Builder

2) Add use statement for Fixtures Registry trait

3) Invoke Builder::build operation in Behat's Feature class

Available Builder's fixture type constants:

Cleaning Fixtures

After building a fixture, to delete it via a Behat hook, simply provide the hook to Builder's build method.

Note: If a hook is not specified, the fixture created will not be added to Registry for clean up, thus it won't be deleted.

Available hooks

Plugins

Plugins comes in terms of Traits. The following traits are available:

AdminPanelSession

Provides operations to manage admin panel session keys.

DriverCurrentUrl

Retrieves driver's current url.

DriverSession

Provides functionality to refresh driver session.

DriverSwitcher

Provides funtionality to switch driver scope between windows and i-frames.

ElementObjectGetter

Provides functionality to create an Element object without providing an initial selector

Spinner

Provides "waiting" functionality to contexts.

WindowResizer

Provides functionality to resize context windows

Using Many Locators

To use many locators, simply create them and make sure they are auto-loaded with composer. After being loaded, pass the desired locator instance to Builder's build method.

Common Issues

As setup issues are encountered please detail with step by step fix instructions, and where possible update the project itself to provide a more permanent fix.

License

Copyright (C) 2015-2016

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of magefix with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
symfony/yaml Version ~2.0
magetest/magento-behat-extension Version dev-feature/Behat3
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 ctasca/magefix contains the following files

Loading the files please wait ....