PHPackages                             swisscom/aliceconnector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. swisscom/aliceconnector

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

swisscom/aliceconnector
=======================

Neos Flow package for expressive fixture generation based on alice

2.1.1(10mo ago)37.8k↓50%11MITPHP

Since Mar 12Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/onivaevents/Swisscom.AliceConnector)[ Packagist](https://packagist.org/packages/swisscom/aliceconnector)[ RSS](/packages/swisscom-aliceconnector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (11)Used By (1)

Neos Flow Alice connector
=========================

[](#neos-flow-alice-connector)

Neos Flow package for expressive fixture generation based on [Alice](https://github.com/nelmio/alice).

The Swisscom.AliceConnector simply provides a Context that connects your functional test cases with Alice.

Getting started
---------------

[](#getting-started)

Install the package through composer. You likely require it for dev only.

```
composer require --dev swisscom/aliceconnector

```

### Configuration

[](#configuration)

Set the path to your fixture files in the `Settings.yaml`:

```
Swisscom:
  AliceConnector:
    fixtureSets:
      default: '%FLOW_PATH_PACKAGES%Application/Your.Package/Tests/Fixtures/{name}.yaml'
```

### Fixture creation

[](#fixture-creation)

Create your file based Alice fixtures under the path defined in `fixtureSets`.

This basic example stored as `Company.yaml` defines a single fixture object for the domain model `Company`:

```
Your\Package\Domain\Model\Company:
  company1:
    name: 'Swisscom'
```

For a more real case example and documentation reference about the notation go to "\[What does Alice?\](#What does Alice?)".

### Usage

[](#usage)

Use the `Context` in your test and load the fixtures. `$testablePersistenceEnabled` should be enabled to work with persistence.

```
