Skip to content

Commit 5bfe3c2

Browse files
committed
Add @broken-trunk to unit test expectations
1 parent aaaaa81 commit 5bfe3c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test-behat-tags.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ public function test_behat_tags_wp_version_github_token( $env, $expected ) {
4444
file_put_contents( $this->temp_dir . '/features/wp_version.feature', $contents );
4545

4646
$output = exec( "cd {$this->temp_dir}; $env php $behat_tags" );
47-
$this->assertSame( '--tags=' . $expected . '&&~@broken', $output );
47+
48+
$expected .= '&&~@broken';
49+
if ( in_array( $env, array( 'WP_VERSION=trunk', 'WP_VERSION=nightly' ), true ) ) {
50+
$expected .= '&&~@broken-trunk';
51+
}
52+
$this->assertSame( '--tags=' . $expected, $output );
4853

4954
putenv( false === $env_wp_version ? 'WP_VERSION' : "WP_VERSION=$env_wp_version" );
5055
putenv( false === $env_github_token ? 'GITHUB_TOKEN' : "GITHUB_TOKEN=$env_github_token" );

0 commit comments

Comments
 (0)