|
1 | 1 | Feature: List database tables |
2 | 2 |
|
3 | | - @require-mysql-or-mariadb |
4 | 3 | Scenario: List database tables on a single WordPress install |
5 | 4 | Given a WP install |
6 | 5 |
|
@@ -36,40 +35,7 @@ Feature: List database tables |
36 | 35 | wp_postmeta,wp_posts |
37 | 36 | """ |
38 | 37 |
|
39 | | - @require-sqlite |
40 | | - Scenario: List database tables on a single WordPress install |
41 | | - Given a WP install |
42 | | - |
43 | | - When I run `wp db tables` |
44 | | - Then STDOUT should contain: |
45 | | - """ |
46 | | - wp_users |
47 | | - wp_usermeta |
48 | | - wp_termmeta |
49 | | - wp_terms |
50 | | - wp_term_taxonomy |
51 | | - wp_term_relationships |
52 | | - wp_commentmeta |
53 | | - wp_comments |
54 | | - wp_links |
55 | | - wp_options |
56 | | - wp_postmeta |
57 | | - wp_posts |
58 | | - """ |
59 | | - |
60 | | - When I run `wp db tables --format=csv` |
61 | | - Then STDOUT should contain: |
62 | | - """ |
63 | | - ,wp_commentmeta,wp_comments, |
64 | | - """ |
65 | | - |
66 | | - When I run `wp db tables 'wp_post*' --format=csv` |
67 | | - Then STDOUT should be: |
68 | | - """ |
69 | | - wp_postmeta,wp_posts |
70 | | - """ |
71 | | - |
72 | | - @require-wp-3.9 @require-mysql-or-mariadb |
| 38 | + @require-wp-3.9 |
73 | 39 | Scenario: List database tables on a multisite WordPress install |
74 | 40 | Given a WP multisite install |
75 | 41 |
|
@@ -153,84 +119,6 @@ Feature: List database tables |
153 | 119 | wp_posts |
154 | 120 | """ |
155 | 121 |
|
156 | | - @require-sqlite |
157 | | - Scenario: List database tables on a multisite WordPress install |
158 | | - Given a WP multisite install |
159 | | - |
160 | | - When I run `wp db tables` |
161 | | - Then STDOUT should contain: |
162 | | - """ |
163 | | - wp_users |
164 | | - wp_usermeta |
165 | | - wp_termmeta |
166 | | - wp_terms |
167 | | - wp_term_taxonomy |
168 | | - wp_term_relationships |
169 | | - wp_commentmeta |
170 | | - wp_comments |
171 | | - wp_links |
172 | | - wp_options |
173 | | - wp_postmeta |
174 | | - wp_posts |
175 | | - wp_blogs |
176 | | - wp_blogmeta |
177 | | - wp_registration_log |
178 | | - wp_site |
179 | | - wp_sitemeta |
180 | | - wp_signups |
181 | | - """ |
182 | | - |
183 | | - When I run `wp site create --slug=foo` |
184 | | - And I run `wp db tables --url=example.com/foo` |
185 | | - Then STDOUT should contain: |
186 | | - """ |
187 | | - wp_users |
188 | | - """ |
189 | | - And STDOUT should contain: |
190 | | - """ |
191 | | - wp_usermeta |
192 | | - """ |
193 | | - And STDOUT should contain: |
194 | | - """ |
195 | | - wp_2_posts |
196 | | - """ |
197 | | - |
198 | | - When I run `wp db tables --url=example.com/foo --scope=global` |
199 | | - Then STDOUT should not contain: |
200 | | - """ |
201 | | - wp_2_posts |
202 | | - """ |
203 | | - |
204 | | - When I run `wp db tables --all-tables-with-prefix` |
205 | | - Then STDOUT should contain: |
206 | | - """ |
207 | | - wp_2_posts |
208 | | - """ |
209 | | - And STDOUT should contain: |
210 | | - """ |
211 | | - wp_posts |
212 | | - """ |
213 | | - |
214 | | - When I run `wp db tables --url=example.com/foo --all-tables-with-prefix` |
215 | | - Then STDOUT should contain: |
216 | | - """ |
217 | | - wp_2_posts |
218 | | - """ |
219 | | - And STDOUT should not contain: |
220 | | - """ |
221 | | - wp_posts |
222 | | - """ |
223 | | - |
224 | | - When I run `wp db tables --url=example.com/foo --network` |
225 | | - Then STDOUT should contain: |
226 | | - """ |
227 | | - wp_2_posts |
228 | | - """ |
229 | | - And STDOUT should contain: |
230 | | - """ |
231 | | - wp_posts |
232 | | - """ |
233 | | - |
234 | 122 | # AUTO_INCREMENT doesn't work with SQLite. |
235 | 123 | @require-mysql-or-mariadb |
236 | 124 | Scenario: Listing a site's tables should only list that site's tables |
|
0 commit comments