Skip to content

Update amp_remove_admin_bar_in_phone_preview() to use wp_print_inline_script_tag() #12274

Update amp_remove_admin_bar_in_phone_preview() to use wp_print_inline_script_tag()

Update amp_remove_admin_bar_in_phone_preview() to use wp_print_inline_script_tag() #12274

Triggered via pull request November 18, 2025 16:29
Status Failure
Total duration 13m 24s
Artifacts

build-test-measure.yml

on: pull_request
Pre run
6s
Pre run
Lint: CSS
Lint: CSS
Lint: JS
Lint: JS
Lint: PHP
44s
Lint: PHP
Static Analysis: PHP
1m 23s
Static Analysis: PHP
Unit test: JS
Unit test: JS
Matrix: E2E test: JS
Matrix: feature-test-php
Matrix: unit-test-php
Fit to window
Zoom out
Zoom in

Annotations

30 errors, 10 warnings, and 2 notices
Unit test: PHP 8.5, WP trunk
Process completed with exit code 1.
Unit test: PHP 8.5, WP trunk
Failed asserting that two arrays are equal.
Unit test: PHP 8.5, WP trunk: tests/php/test-class-amp-core-block-handler.php#L900
Failed asserting that 2 matches expected 0.
Unit test: PHP 8.5, WP trunk: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 8.4, WP trunk
Process completed with exit code 1.
Unit test: PHP 8.4, WP trunk
Failed asserting that two arrays are equal.
Unit test: PHP 8.4, WP trunk: tests/php/test-class-amp-core-block-handler.php#L900
Failed asserting that 2 matches expected 0.
Unit test: PHP 8.4, WP trunk: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 8.3, WP trunk
Process completed with exit code 1.
Unit test: PHP 8.3, WP trunk
Failed asserting that two arrays are equal.
Unit test: PHP 8.3, WP trunk: tests/php/test-class-amp-core-block-handler.php#L900
Failed asserting that 2 matches expected 0.
Unit test: PHP 8.3, WP trunk: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 7.4, WP latest Multisite
Process completed with exit code 1.
Unit test: PHP 7.4, WP latest Multisite: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 8.1, WP trunk
Process completed with exit code 1.
Unit test: PHP 8.1, WP trunk
Failed asserting that two arrays are equal.
Unit test: PHP 8.1, WP trunk: tests/php/test-class-amp-core-block-handler.php#L900
Failed asserting that 2 matches expected 0.
Unit test: PHP 8.1, WP trunk: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test (with coverage): PHP 8.0, WP latest
Process completed with exit code 255.
Unit test: PHP 8.2, WP trunk
Process completed with exit code 1.
Unit test: PHP 8.2, WP trunk
Failed asserting that two arrays are equal.
Unit test: PHP 8.2, WP trunk: tests/php/test-class-amp-core-block-handler.php#L900
Failed asserting that 2 matches expected 0.
Unit test: PHP 8.2, WP trunk: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 7.4, WP 6.6
Process completed with exit code 1.
Unit test: PHP 7.4, WP 6.6: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 8.0, WP trunk Multisite
Process completed with exit code 1.
Unit test: PHP 8.0, WP trunk Multisite
Failed asserting that two arrays are equal.
Unit test: PHP 8.0, WP trunk Multisite: tests/php/test-class-amp-core-block-handler.php#L900
Failed asserting that 2 matches expected 0.
Unit test: PHP 8.0, WP trunk Multisite: tests/php/test-amp-helper-functions.php#L486
Failed asserting that '<script type="text/javascript" data-ampdevmode="data-ampdevmode">\n
Unit test: PHP 8.0, WP latest
Process completed with exit code 127.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L589
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L587
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L585
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L578
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L576
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L574
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L568
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/validation/test-class-amp-validated-url-post-type.php#L567
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/src/ValidatedUrlStylesheetDataGarbageCollectionTest.php#L70
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
Lint: PHP: tests/php/src/ValidatedUrlStylesheetDataGarbageCollectionTest.php#L68
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
E2E test: JS (2, 2)
Using Chromium from /home/runner/.cache/puppeteer/chrome/linux-127.0.6533.88/chrome-linux64/chrome
E2E test: JS (1, 2)
Using Chromium from /home/runner/.cache/puppeteer/chrome/linux-127.0.6533.88/chrome-linux64/chrome