diff --git a/tests/Fixture/ArticlesFixture.php b/tests/Fixture/ArticlesFixture.php index 674e9a4..7e47dc4 100644 --- a/tests/Fixture/ArticlesFixture.php +++ b/tests/Fixture/ArticlesFixture.php @@ -1,7 +1,7 @@ records, function (&$record) use ($created, $modified) { $record += compact('created', 'modified'); }); diff --git a/tests/TestCase/Model/Behavior/TrashBehaviorTest.php b/tests/TestCase/Model/Behavior/TrashBehaviorTest.php index ed4c28b..cd02d98 100644 --- a/tests/TestCase/Model/Behavior/TrashBehaviorTest.php +++ b/tests/TestCase/Model/Behavior/TrashBehaviorTest.php @@ -12,19 +12,11 @@ use Cake\I18n\DateTime; use Cake\ORM\Association\HasMany; use Cake\ORM\Entity; +use Cake\ORM\Table; use Cake\TestSuite\TestCase; use InvalidArgumentException; use Muffin\Trash\Model\Behavior\TrashBehavior; -/** - * @property \Cake\ORM\Table Users - * @property \Cake\ORM\Table CompositeArticlesUsers - * @property \Cake\ORM\Table Comments - * @property \Cake\ORM\Table Articles - * @property \Muffin\Trash\Model\Behavior\TrashBehavior Behavior - * - * @property \Cake\ORM\Table @mixin \Muffin\Trash\Model\Behavior\TrashBehavior - */ class TrashBehaviorTest extends TestCase { /** @@ -32,7 +24,7 @@ class TrashBehaviorTest extends TestCase * * @var array */ - public array $fixtures = [ + protected array $fixtures = [ 'plugin.Muffin/Trash.Articles', 'plugin.Muffin/Trash.Comments', 'plugin.Muffin/Trash.Users', @@ -40,6 +32,12 @@ class TrashBehaviorTest extends TestCase 'plugin.Muffin/Trash.CompositeArticlesUsers', ]; + protected Table $Users; + protected Table $CompositeArticlesUsers; + protected Table $Comments; + protected Table $Articles; + protected TrashBehavior $Behavior; + /** * Runs before each test. * diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 5b073d5..ca891ba 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -32,6 +32,3 @@ require $root . '/vendor/cakephp/cakephp/tests/bootstrap.php'; -Configure::write('Error.ignoredDeprecationPaths', [ - 'src/TestSuite/Fixture/FixtureInjector.php', -]);