Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bertrams committed Aug 25, 2024
1 parent a28cc84 commit 169c803
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/Entity/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ class Location
private ?int $id = null;

#[ORM\Column(type: Types::STRING, length: 255)]
private string $name;
private ?string $name = null;

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $street;
private ?string $street = null;

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $number;
private ?string $number = null;

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $postalCode;
private ?string $postalCode = null;

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $city;
private ?string $city = null;

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $state;
private ?string $state = null;

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $countryCode;
private ?string $countryCode = null;

#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $notes;
private ?string $notes = null;

public function getId(): ?int
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Traits/ExcerptTranslationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait ExcerptTranslationTrait
private ?int $id = null;

#[ORM\Column(type: Types::STRING, length: 5)]
private string $locale = 'de';
private string $locale = 'en';

#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $title = null;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Entity/LocationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class LocationTest extends TestCase
{
private $location;
private ?Location $location = null;

protected function setUp(): void
{
Expand Down

0 comments on commit 169c803

Please sign in to comment.