Skip to content

Commit

Permalink
Declare some missing dynamic properties in tests (#229)
Browse files Browse the repository at this point in the history
* Add AllowDynamic trait to suppress deprecation warning
* Explicitly declare properties instead
* Fix stan

Co-authored-by: Jamison Bryant <jbryant@ticketsauce.com>
  • Loading branch information
jamisonbryant and Jamison Bryant committed Jan 12, 2023
1 parent 3f9b514 commit dc470f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestCase/Command/PolicyCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class PolicyCommandTest extends ConsoleIntegrationTestCase
{
use StringCompareTrait;

/**
* @var string
*/
protected $comparisonDir = '';

/**
* @var string
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Controller/Component/AuthorizationComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
*/
class AuthorizationComponentTest extends TestCase
{
/**
* @var \Cake\Controller\Controller
*/
protected $Controller;

/**
* @var \Cake\Controller\ComponentRegistry
*/
protected $ComponentRegistry;

/**
* @var \Authorization\Controller\Component\AuthorizationComponent
*/
Expand Down

0 comments on commit dc470f4

Please sign in to comment.