https://github.com/dantleech/drupal_alice_fixtures
Generative Fixtures for Drupal via. Alice
https://github.com/dantleech/drupal_alice_fixtures
Last synced: over 1 year ago
JSON representation
Generative Fixtures for Drupal via. Alice
- Host: GitHub
- URL: https://github.com/dantleech/drupal_alice_fixtures
- Owner: dantleech
- Created: 2018-03-07T22:04:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T09:30:17.000Z (over 8 years ago)
- Last Synced: 2025-01-30T15:44:28.100Z (over 1 year ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generative Fixtures for Drupal
==============================
[](https://travis-ci.org/dantleech/drupal_alice_fixtures)
This is just a thin integration of [Alice](https://github.com/nelmio/alice)
with Drupal (console), check out that documentation to find out more.
Usage
-----
```yaml
# fixtures/articles.yml
node:
article{1..10}:
type: article
title:
body:
article{1..10}:
type: article
title: Hey! [ ]
body:
```
```bash
$ ./bin/drupal alice:fixtures-load fixtures
```
To purge fixture content which already exists (based on entity type, will
purge all nodes f.e.):
```bash
$ ./bin/drupal alice:fixtures-load fixtures --purge
```