PHP Class VersionPress\Tests\Automation\VpAutomateCommand

Inheritance: extends WP_CLI_Command
Afficher le fichier Open project: versionpress/versionpress

Méthodes publiques

Méthode Description
generate ( $args, $assoc_args ) Fills the site with random data.
startOver ( $args, $assoc_args ) Removes everything created by VP, leaves site fresh for new testing.

Private Methods

Méthode Description
buildInsertQueries ( $table, $entities )
generateComment ( )
generateEntities ( $entity, $count )
generateEntity ( $entity )
generateLoremIpsum ( $countOfSentences, $period = true )
generateOption ( )
generatePost ( )
generateTerm ( )
generateUser ( )
getFieldFn ( $field )
prepareComment ( $comment )
preparePost ( $post )
randomEntry ( array $array )

Method Details

generate() public méthode

## OPTIONS --posts= : Count of generated posts. --comments= : Count of generated comments. --users= : Count of generated users. --options= : Count of generated options. --terms= : Count of generated terms.
public generate ( $args, $assoc_args )

startOver() public méthode

## DETAILS Basically does plugin deactivation, removing the Git repo and plugin activation. Deactivation does things like removing vpdb, db.php, VersionPress db tables etc.
public startOver ( $args, $assoc_args )