-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathdb-quiet.feature
More file actions
109 lines (91 loc) · 2.5 KB
/
db-quiet.feature
File metadata and controls
109 lines (91 loc) · 2.5 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Feature: Quiet mode for database operations
Scenario: db check with --quiet flag should only show errors
Given a WP install
When I run `wp db check --quiet`
Then STDOUT should not contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should be empty
Scenario: db optimize with --quiet flag should only show errors
Given a WP install
When I run `wp db optimize --quiet`
Then STDOUT should not contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should be empty
Scenario: db repair with --quiet flag should only show errors
Given a WP install
When I run `wp db repair --quiet`
Then STDOUT should not contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should be empty
Scenario: db check without --quiet flag should show informational messages
Given a WP install
When I run `wp db check`
Then STDOUT should contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should contain:
"""
Success: Database checked.
"""
Scenario: db optimize without --quiet flag should show informational messages
Given a WP install
When I run `wp db optimize`
Then STDOUT should contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should contain:
"""
Success: Database optimized.
"""
Scenario: db repair without --quiet flag should show informational messages
Given a WP install
When I run `wp db repair`
Then STDOUT should contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should contain:
"""
Success: Database repaired.
"""
Scenario: db check can explicitly pass --silent to mysqlcheck
Given a WP install
When I run `wp db check --silent`
Then STDOUT should not contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should contain:
"""
Success: Database checked.
"""
Scenario: db optimize can explicitly pass --silent to mysqlcheck
Given a WP install
When I run `wp db optimize --silent`
Then STDOUT should not contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should contain:
"""
Success: Database optimized.
"""
Scenario: db repair can explicitly pass --silent to mysqlcheck
Given a WP install
When I run `wp db repair --silent`
Then STDOUT should not contain:
"""
wp_cli_test.wp_users
"""
And STDOUT should contain:
"""
Success: Database repaired.
"""