Skip to content

Commit

Permalink
change case class for FilteredBehaviorTest to \PHPUnit\Framework\Test…
Browse files Browse the repository at this point in the history
…Case #3
  • Loading branch information
Josef Stich committed May 27, 2024
1 parent a6bbc62 commit 706f220
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Test/Case/Model/Behaviors/FilteredBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
App::uses('Item', 'Filter.Test/Case/MockObjects');
App::uses('Metadata', 'Filter.Test/Case/MockObjects');

class FilteredBehaviorTest extends CakeTestCase
class FilteredBehaviorTest extends \PHPUnit\Framework\TestCase
{
/**
* @var string[]
Expand All @@ -39,12 +39,12 @@ class FilteredBehaviorTest extends CakeTestCase
public $Document;

/**
* @param $model
* @return void
* @throws Exception
*/
public function startTest($model)
public function setUp(): void
{
parent::setUp();
$Document = ClassRegistry::init('Document');

if ($Document instanceof Document) {
Expand All @@ -54,11 +54,6 @@ public function startTest($model)
}
}

public function endTest($model)
{
unset($this->Document);
}

/**
* Detach and re-attach the behavior to reset the options.
*
Expand Down

0 comments on commit 706f220

Please sign in to comment.