You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/db-size.feature
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Feature: Display database size
5
5
Scenario: Display only database size for a WordPress install
6
6
Given a WP install
7
7
8
-
When I run `wp db query "SELECT SUM(data_length + index_length) FROM information_schema.TABLES where table_schema = 'wp_cli_test' GROUP BY table_schema;"`
8
+
When I run `wp db query "SELECT CEILING( SUM(data_length + index_length) / 1024 ) as Size FROM information_schema.TABLES where table_schema = 'wp_cli_test' GROUP BY table_schema;"`
9
9
Then save STDOUT '(\d+)' as {DBSIZE}
10
10
11
11
When I run `wp db size`
@@ -16,7 +16,7 @@ Feature: Display database size
16
16
17
17
And STDOUT should contain:
18
18
"""
19
-
KB {DBSIZE}
19
+
{DBSIZE} KB
20
20
"""
21
21
22
22
Scenario: Display only table sizes for a WordPress install
0 commit comments