mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-05-31 00:04:27 +08:00
* fix(test): use pg_trgm if not exists * test: add test for /core/importers * test: add test for gp-icon and theme screenshot download * test: inline most test assertion functions into assertExactJson * test: add hot tags tests * test: add plugin updates tests * test: 100% coverage of download routes * test: 100% coverage of plugin update controller * test: 100% coverage of all api controllers * fix: make PassThroughController drop unexpected requests * refactor: rm special case for / in PassThroughController * test: auto-fake facades * test: test PassThroughController for 100% coverage on Controllers * test: drop auto-fakes because facades are made of hate * zap: rm unused build-container-images action * test: add test for AssetCacheHit event * deps: composer upgrade and bump
16 lines
541 B
Bash
Executable file
16 lines
541 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. $(dirname $0)/prelude.bash
|
|
|
|
. .env
|
|
[[ -r .env.testing ]] && . .env.testing
|
|
|
|
export APP_ENV=testing
|
|
export DB_CONNECTION=test
|
|
|
|
export PGPASSWORD=$DB_ROOT_PASSWORD
|
|
psql -U $DB_ROOT_USERNAME -h $DB_HOST -c 'drop database if exists aspirecloud_testing'
|
|
psql -U $DB_ROOT_USERNAME -h $DB_HOST -c "create database aspirecloud_testing owner $DB_USERNAME"
|
|
psql -U $DB_ROOT_USERNAME -h $DB_HOST -c "create extension if not exists pg_trgm"
|
|
php artisan migrate --database=test --force --no-interaction
|
|
php artisan db:seed --database=test
|