sonata-project/sandbox-build

Name: sandbox-build

Owner: Sonata Project

Description: [deprecated] The complete Sonata Project Sandbox with vendors

Created: 2015-03-18 10:10:08.0

Updated: 2018-02-09 15:39:20.0

Pushed: 2015-06-03 21:00:00.0

Homepage:

Size: 81799

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Sonata Standard Edition

Codeship Status for sonata-project/sandbox

What's inside?

Sonata Standard Edition comes pre-configured with the following bundles:

Quick Installation

The Sonata Project provides a build of the current sandbox to quickly start with the projet.

curl -L github https://github.com/sonata-project/sandbox-build/archive/2.4.tar.gz | tar xzv

Once, you have the file, you can either use

Local Installation
Vagrant Installation
Composer Installation

Get composer:

curl -s http://getcomposer.org/installer | php

Run the following command for the 2.4 develop branch:

php composer.phar create-project sonata-project/sandbox:2.4.x-dev

The installation process used Incenteev's ParameterHandler to handle parameters.yml configuration. With the current installation, it is possible to use environment variables to configure this file:

DATABASE_NAME=sonata DATABASE_USER=root DATABASE_PASSWORD="" php composer.phar create-project sonata-project/sandbox:dev-2.4-develop

You might experience some timeout issues with composer, as the create-project start different scripts, you can increase the default composer value with the COMPOSER_PROCESS_TIMEOUT env variable:

COMPOSER_PROCESS_TIMEOUT=600 php composer.phar create-project sonata-project/sandbox:dev-2.4-develop

Fixtures are automatically loaded on the composer create-project step. If you'd like to reset your sandbox to the default fixtures (or you had an issue while installing and want to fill in the fixtures manually), you may run:

php bin/load_data.php

This will completely reset your database.

Run

If you are running PHP5.4, you can use the built in server to start the demo:

app/console server:run localhost:9090

Now open your browser and go to http://localhost:9090/

Tests
Functional testing

To run the Behat tests, copy the default configuration file and adjust the base_url to your needs

# behat.yml
imports:
    - behat.yml.dist

# Overwrite only the config you want to change here

You can now run the tests suite using the following command

bin/qa_behat.sh

To get more informations about Behat, feel free to check the official documentation.

Unit testing

To run the Sonata test suites, you can run the command:

bin/qa_client_ci.sh

Enjoy!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.