-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TESTS] Update unit tests for PublishFileInstructions
- Loading branch information
1 parent
31d2fe9
commit 634d10b
Showing
4 changed files
with
302 additions
and
166 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Tests/Unit/Component/Core/Publisher/AbstractFilesystemPublisherTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace In2code\In2publishCore\Tests\Unit\Component\Core\Publisher; | ||
|
||
use In2code\In2publishCore\Tests\UnitTestCase; | ||
use ReflectionProperty; | ||
|
||
abstract class AbstractFilesystemPublisherTest extends UnitTestCase | ||
{ | ||
protected function getRequestTokenFromPublisher($filesystemRecordPublisher) | ||
{ | ||
$reflectionProperty = new ReflectionProperty($filesystemRecordPublisher, 'requestToken'); | ||
$reflectionProperty->setAccessible(true); | ||
return $reflectionProperty->getValue($filesystemRecordPublisher); | ||
} | ||
} |
Oops, something went wrong.