Skip to content

Commit

Permalink
Add command for loading fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
groganz committed Jul 9, 2016
1 parent bf15d4d commit 2155c0b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions developer/book/sample_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ Usage
-----

If ``campaignchain_dev`` is set to ``true`` in ``app/config/parameters.yml``,
then you will be able to load sample data into CampaignChain by visiting the
page http://example.com/development/sample-data of your CampaignChain
installation.
then you will be able to load sample data into CampaignChain in its Graphical
User Interface or through a command.

To use the GUI, visit the page http://example.com/development/sample-data of
your CampaignChain installation.

.. image:: /images/developer/book/load_sample_data.png
:width: 600px
Expand All @@ -91,7 +93,11 @@ installation.
otherwise specified by the package).

In addition to the user interface, you could also load sample data by using the
command line as described in the `"Commands" section for the Alice Fixtures Bundle`_.
command line. Issue the following command in the root of your CampaignChain
installation to load the test data along with its credentials:

$ php app/console campaignchain:fixture vendor/amariki/data-test/Resources/data/campaignchain/data.yml vendor/amariki/secrets/credentials_test.yml


Recovery
--------
Expand Down

0 comments on commit 2155c0b

Please sign in to comment.