Skip to content

Commit 851973a

Browse files
committed
Tests: Optional params must follow required params.
1 parent d53810f commit 851973a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/API/CacheableAPIBaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function provider_get_request_transient_key(): array {
267267
*
268268
* @throws ReflectionException
269269
*/
270-
public function test_is_request_cacheable( bool $is_cacheable, $filter_value = null, bool $expected ) {
270+
public function test_is_request_cacheable( bool $is_cacheable, $filter_value, bool $expected ) {
271271

272272
$api = $this->get_new_api_instance_with_request( $this->get_new_request_instance( $is_cacheable ) );
273273

@@ -313,7 +313,7 @@ public function provider_is_request_cacheable(): array {
313313
*
314314
* @throws ReflectionException
315315
*/
316-
public function test_get_request_cache_lifetime( int $lifetime, $filter_value = null, int $expected ) {
316+
public function test_get_request_cache_lifetime( int $lifetime, $filter_value, int $expected ) {
317317

318318
$api = $this->get_new_api_instance_with_request( $this->get_new_request_instance()->set_cache_lifetime( $lifetime ) );
319319

0 commit comments

Comments
 (0)