Skip to content

Commit

Permalink
Fix phpcs warnings in test-includes-admin-functions.php and update co…
Browse files Browse the repository at this point in the history
…mposer.lock after b9c7a40
  • Loading branch information
westonruter committed Aug 12, 2021
1 parent b9c7a40 commit 0c545ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/php/test-includes-admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function get_data_for_test_amp_get_customizer_url() {
Option::THEME_SUPPORT => AMP_Theme_Support::READER_MODE_SLUG,
Option::READER_THEME => ReaderThemes::DEFAULT_READER_THEME,
],
'assert' => function () {
'assert' => function () {
$this->assertTrue( amp_is_legacy() );
$this->assertEquals( 'customize.php?amp_preview=1&autofocus[panel]=amp_panel', amp_get_customizer_url() );

Expand All @@ -153,7 +153,7 @@ static function ( WP_Theme $theme ) {
Option::READER_THEME => $theme->get_stylesheet(),
];
},
'assert' => function () {
'assert' => function () {
$this->assertFalse( amp_is_legacy() );
$this->assertEquals( 'customize.php?amp_preview=1&amp=1', amp_get_customizer_url() );
},
Expand All @@ -162,7 +162,7 @@ static function ( WP_Theme $theme ) {
'options' => [
Option::THEME_SUPPORT => AMP_Theme_Support::TRANSITIONAL_MODE_SLUG,
],
'assert' => function () {
'assert' => function () {
$this->assertEquals( '', amp_get_customizer_url() );
},
],
Expand Down

0 comments on commit 0c545ac

Please # to comment.