2017 © Pedro Peláez
 

silverstripe-vendormodule seeder

Simplified seeding of the database for testing purposes

image

firesphere/seeder

Simplified seeding of the database for testing purposes

  • Monday, February 26, 2018
  • by Firesphere
  • Repository
  • 1 Watchers
  • 0 Stars
  • 83 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Scrutinizer Code Quality Build Status codecov, (*1)

SilverStripe Seeder

WARNING

This will not create a test database for you! Do not run this against a production database!, (*2)

Seed your database for Acceptance testing, (*3)

Installation

composer require firesphere/seeder, (*4)

Usage

Create a seeder yml file somewhere in your project, with the same syntax as the standard PHPUnit tests. E.g., (*5)


Firesphere\Seeder\Tests\Mock\Page: page1: Title: The title Content: "

Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing., (*6)

"

Relations are defined the same way as in PHPUnit., (*7)

Then run the seeder, (*8)

vendor/bin/sake dev/tasks/seeder type=seed flush=all, (*9)

To unseed, run, (*10)

vendor/bin/sake dev/tasks/seeder type=seed flush=all, (*11)

This will destroy all data that is defined in your seeder yml., (*12)

You will need to run a database build before seeding, and after unseeding., (*13)

todo

Integrate with Codeception/Behat to automatically seed on run, (*14)

The Versions

26/02 2018

dev-master

9999999-dev

Simplified seeding of the database for testing purposes

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

The Development Requires

database testing silverstripe seeding

26/02 2018

0.1

0.1.0.0

Simplified seeding of the database for testing purposes

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

The Development Requires

database testing silverstripe seeding