File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,3 +243,30 @@ Feature: Display database size
243243 """
244244 wp_posts
245245 """
246+
247+ @require-mysql
248+ Scenario : Display table size with right alignment
249+ Given a WP install
250+
251+ When I run `SHELL_PIPE=0 wp db size --tables --all-tables --orderby=size --order=desc --size_format=mb`
252+ Then STDOUT should strictly be:
253+ """
254+ +-------------------------+------+
255+ | Name | Size |
256+ +-------------------------+------+
257+ | _mysql_data_types_cache | 0 MB |
258+ | wp_users | 0 MB |
259+ | sqlite_sequence | 0 MB |
260+ | wp_usermeta | 0 MB |
261+ | wp_termmeta | 0 MB |
262+ | wp_terms | 0 MB |
263+ | wp_term_taxonomy | 0 MB |
264+ | wp_term_relationships | 0 MB |
265+ | wp_commentmeta | 0 MB |
266+ | wp_comments | 0 MB |
267+ | wp_links | 0 MB |
268+ | wp_options | 0 MB |
269+ | wp_postmeta | 0 MB |
270+ | wp_posts | 0 MB |
271+ +-------------------------+------+
272+ """
You can’t perform that action at this time.
0 commit comments