-
Notifications
You must be signed in to change notification settings - Fork 203
Expand file tree
/
Copy path.env.test.example
More file actions
43 lines (38 loc) · 1.14 KB
/
.env.test.example
File metadata and controls
43 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Test Environment Configuration Template
#
# REQUIRED: Copy this file to .env.test before running tests
# cp .env.test.example .env.test
#
# Then edit .env.test with your database credentials.
# The .env.test file is gitignored and safe for local credentials.
#
# Setup test database:
# php scripts/setup_database.php --env=.env.test
#
# Seed test data (required for tests to pass):
# For MySQL: mysql -u DB_USER -pDB_PASS DB_NAME < tests/phpunit/data/seed_mysql.sql
# For SQLite: sqlite3 DB_SOCKET < tests/phpunit/data/seed_sqlite.sql
# For PostgreSQL: PGPASSWORD=DB_PASS psql -h localhost -U DB_USER -d DB_NAME < tests/phpunit/data/seed_pgsql.sql
#
# Database Configuration for Tests
DB_CONNECTION_TYPE=host
DB_DRIVER=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=cypht_test
DB_USER=cypht_test
DB_PASS=cypht_test
DB_SOCKET=/var/lib/mysqld/mysqld.sock
# Session Configuration for Tests
SESSION_TYPE=PHP
AUTH_TYPE=DB
# User Configuration for Tests
USER_CONFIG_TYPE=file
USER_SETTINGS_DIR=tests/phpunit/data
# Logging configuration
ENABLE_DEBUG=true
LOG_LEVEL=INFO
LOG_FILE=
# Other test-specific settings
DEFAULT_LANGUAGE=en
ALLOW_SESSION_CACHE=false