Skip to content

Commit

Permalink
Fixed typo in TestCase method
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Oct 22, 2024
1 parent bdd2533 commit c2e66e8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function getPrivateMethodFromObject(object $object, string $methodName):
* @param array $args
* @return mixed
*/
public function invokePivateMethodFromObject($object, string $methodName, ...$args)
public function invokePrivateMethodFromObject($object, string $methodName, ...$args)
{
$method = $this->getPrivateMethodFromObject($object, $methodName);
return $method->invoke($object, ...$args);
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentBuilderBasicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function testDocumentProperties(): void
{
(self::$document)->initNewDocument();

$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\basic\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\basic\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
$property = $this->getPrivatePropertyFromObject(self::$document, 'headerTradeAgreement');
$this->assertNotNull($property->getValue(self::$document));
$property = $this->getPrivatePropertyFromObject(self::$document, 'headerTradeDelivery');
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentBuilderComfortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function testDocumentProperties(): void
{
(self::$document)->initNewDocument();

$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\comfort\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\comfort\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
$property = $this->getPrivatePropertyFromObject(self::$document, 'headerTradeAgreement');
$this->assertNotNull($property->getValue(self::$document));
$property = $this->getPrivatePropertyFromObject(self::$document, 'headerTradeDelivery');
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentBuilderExtendedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function testDocumentProperties(): void
{
(self::$document)->initNewDocument();

$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\extended\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\extended\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
$property = $this->getPrivatePropertyFromObject(self::$document, 'headerTradeAgreement');
$this->assertNotNull($property->getValue(self::$document));
$property = $this->getPrivatePropertyFromObject(self::$document, 'headerTradeDelivery');
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentPdfReaderComfortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public function testPdfRead(): void

public function testDocumentProperties(): void
{
$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\comfort\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\comfort\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
}

public function testDocumentProfile(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentPdfReaderExtendedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public function testPdfRead(): void

public function testDocumentProperties(): void
{
$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\extended\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\extended\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
}

public function testDocumentProfile(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentReaderComfortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public static function setUpBeforeClass(): void

public function testDocumentProperties(): void
{
$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\comfort\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\comfort\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
}

public function testDocumentProfile(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/OrderDocumentReaderExtendedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public static function setUpBeforeClass(): void

public function testDocumentProperties(): void
{
$this->assertNotNull($this->invokePivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\extended\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePivateMethodFromObject(self::$document, 'getOrderObject')));
$this->assertNotNull($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject'));
$this->assertEquals('horstoeko\orderx\entities\extended\rsm\SCRDMCCBDACIOMessageStructure', get_class($this->invokePrivateMethodFromObject(self::$document, 'getOrderObject')));
}

public function testDocumentProfile(): void
Expand Down

0 comments on commit c2e66e8

Please sign in to comment.