Skip to content

Commit

Permalink
Declare was-dynamic properties in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Dec 29, 2023
1 parent 0201856 commit 23d500e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Test/Unit/Console/Command/KillJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace EthanYehuda\CronjobManager\Test\Unit\Console\Command;

use EthanYehuda\CronjobManager\Api\ScheduleManagementInterface;
use EthanYehuda\CronjobManager\Console\Command\KillJob;
use Magento\Framework\Api\SearchResultsInterface;
use PHPUnit\Framework\MockObject\MockObject;
Expand Down Expand Up @@ -45,6 +46,9 @@ class KillJobTest extends TestCase
/** @var (FilterGroupBuilder&MockObject)|MockObject */
private $mockFilterGroupBuilder;

/** @var (ProcessManagement&MockObject)|MockObject */
private $mockProcessManagement;

protected function setUp(): void
{
$this->mockState = $this->getMockBuilder(State::class)->setConstructorArgs([
Expand Down
3 changes: 3 additions & 0 deletions Test/Unit/Console/Command/RunjobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class RunjobTest extends TestCase
/** @var (Runner&MockObject)|MockObject */
protected $runner;

/** @var CommandTester */
private $commandTester;

protected function setUp(): void
{
$this->runner = $this->createMock(Runner::class);
Expand Down

0 comments on commit 23d500e

Please sign in to comment.