Skip to content

Commit a888cef

Browse files
committed
test: ✅ Adjust test suite
1 parent c85e2e0 commit a888cef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/PHPUnit/StoreSync/CartValidation/ProductValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function setUp(): void {
2424
parent::setUp();
2525

2626
$this->product_filter = Mockery::mock( ProductFilter::class );
27-
$this->product_filter->allows( 'criteria_violation' )->andReturn( null );
28-
$this->product_filter->allows( 'passes_exclusion_filter' )->andReturn( true );
27+
$this->product_filter->allows( 'criteria_violation' )->andReturn( null )->byDefault();
28+
$this->product_filter->allows( 'passes_exclusion_filter' )->andReturn( true )->byDefault();
2929

3030
$this->validator = new ProductValidator( $this->product_filter );
3131
}

0 commit comments

Comments
 (0)