mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Improved public API in VisitLocation entity, reducing anemic model
This commit is contained in:
@@ -39,7 +39,7 @@ class VisitRepositoryTest extends DatabaseTestCase
|
||||
$visit = new Visit();
|
||||
|
||||
if ($i % 2 === 0) {
|
||||
$location = new VisitLocation();
|
||||
$location = new VisitLocation([]);
|
||||
$this->getEntityManager()->persist($location);
|
||||
$visit->setVisitLocation($location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user