CYS - Fix register testimonials category as reviews failing test (#48719)

* Fix register testimonials category as reviews failing test

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Alba Rincón 2024-06-21 11:55:15 +00:00 committed by GitHub
parent a80e3e8a56
commit 4976011b54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
CYS - Fix the "test_fetch_patterns_should_register_testimonials_category_as_reviews" tests.

View File

@ -233,9 +233,12 @@ class PTKPatternsStoreTest extends \WP_UnitTestCase {
);
$this->ptk_client
->expects( $this->once() )
->expects( $this->exactly( 2 ) )
->method( 'fetch_patterns' )
->willReturn( $ptk_patterns );
->willReturnOnConsecutiveCalls(
$ptk_patterns,
array()
);
$this->pattern_store->fetch_patterns();