File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,30 @@ public function test_behat_tags_php_version(): void {
143143 $ this ->markTestSkipped ( "No test for PHP_VERSION $ php_version. " );
144144 }
145145
146+ $ expected .= '&&~@github-api&&~@broken ' ;
147+
148+ $ db_type = getenv ( 'WP_CLI_TEST_DBTYPE ' );
149+ switch ( $ db_type ) {
150+ case 'mariadb ' :
151+ $ expected .= '&&~@require-mysql ' ;
152+ $ expected .= '&&~@require-sqlite ' ;
153+ break ;
154+ case 'sqlite ' :
155+ $ expected .= '&&~@require-mariadb ' ;
156+ $ expected .= '&&~@require-mysql ' ;
157+ $ expected .= '&&~@require-mysql-or-mariadb ' ;
158+ break ;
159+ case 'mysql ' :
160+ default :
161+ $ expected .= '&&~@require-mariadb ' ;
162+ $ expected .= '&&~@require-sqlite ' ;
163+ break ;
164+ }
165+
146166 file_put_contents ( $ this ->temp_dir . '/features/php_version.feature ' , $ contents );
147167
148168 $ output = exec ( "cd {$ this ->temp_dir }; php $ behat_tags " );
149- $ this ->assertSame ( '--tags= ' . $ expected . ' &&~@github-api&&~@broken&&~@require-mariadb&&~@require-sqlite ' , $ output );
169+ $ this ->assertSame ( '--tags= ' . $ expected , $ output );
150170
151171 putenv ( false === $ env_github_token ? 'GITHUB_TOKEN ' : "GITHUB_TOKEN= $ env_github_token " );
152172 }
You can’t perform that action at this time.
0 commit comments