Skip to content

Commit

Permalink
fix testAfterDataFilterCallbackQueryChange unit test #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Stich committed Apr 3, 2024
1 parent 6f0a65a commit a276b32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Test/Case/Model/Behaviors/FilteredBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FilteredBehaviorTest extends CakeTestCase
);

/**
* @var Document
* @var Document|Document2|Document3
*/
public $Document;

Expand Down Expand Up @@ -667,10 +667,10 @@ public function testBeforeDataFilterCallbackCancel(): void
public function testAfterDataFilterCallbackQueryChange(): void
{
$document = ClassRegistry::init('Document3');
if ($document instanceof Document) {
if ($document instanceof Document3) {
$this->Document = $document;
} else {
throw new Exception('Can not create Document model');
throw new Exception('Can not create Document3 model');
}
$this->Document->itemToUnset = 'FilterDocumentCategory.id';

Expand Down

0 comments on commit a276b32

Please sign in to comment.