refactor(wpmc S3): get_terms modern signature + REQUEST_URI cleanup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-05-12 20:17:08 +05:00
parent 9b23f56e57
commit 259470ca63
3 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -57,8 +57,9 @@ final class HelpersTest extends TestCase
\Brain\Monkey\Functions\expect('get_terms')
->once()
->with('town', \Mockery::on(function ($args) {
return ($args['hide_empty'] ?? null) === false
->with(\Mockery::on(function ($args) {
return ($args['taxonomy'] ?? null) === 'town'
&& ($args['hide_empty'] ?? null) === false
&& ($args['fields'] ?? null) === 'id=>slug';
}))
->andReturn([10 => 'spb', 11 => 'tyumen']);