Remove getId() function call from null models

This commit is contained in:
Dennis Eichhorn 2023-10-16 23:44:00 +00:00
parent a0929b5ea5
commit 308640b36c
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ final class NullPromotionAttributeTest extends \PHPUnit\Framework\TestCase
public function testId() : void public function testId() : void
{ {
$null = new NullPromotionAttribute(2); $null = new NullPromotionAttribute(2);
self::assertEquals(2, $null->getId()); self::assertEquals(2, $null->id);
} }
/** /**

View File

@ -37,7 +37,7 @@ final class NullPromotionAttributeTypeTest extends \PHPUnit\Framework\TestCase
public function testId() : void public function testId() : void
{ {
$null = new NullPromotionAttributeType(2); $null = new NullPromotionAttributeType(2);
self::assertEquals(2, $null->getId()); self::assertEquals(2, $null->id);
} }
/** /**

View File

@ -37,7 +37,7 @@ final class NullPromotionAttributeValueTest extends \PHPUnit\Framework\TestCase
public function testId() : void public function testId() : void
{ {
$null = new NullPromotionAttributeValue(2); $null = new NullPromotionAttributeValue(2);
self::assertEquals(2, $null->getId()); self::assertEquals(2, $null->id);
} }
/** /**

View File

@ -37,7 +37,7 @@ final class NullPromotionTest extends \PHPUnit\Framework\TestCase
public function testId() : void public function testId() : void
{ {
$null = new NullPromotion(2); $null = new NullPromotion(2);
self::assertEquals(2, $null->getId()); self::assertEquals(2, $null->id);
} }
/** /**