Skip to content

Commit bb9e3af

Browse files
committed
local
1 parent 52e0d4f commit bb9e3af

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

config/config_test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ doctrine:
1313
dbal:
1414
driver: 'pdo_mysql'
1515
host: '%database_host%'
16-
path: '%database_path%'
16+
# path: '%database_path%'
1717
port: '%database_port%'
1818
dbname: 'phplist'
1919
user: '%database_user%'
2020
password: '%database_password%'
2121
charset: UTF8
22-
# orm:
23-
# entity_managers:
24-
# default:
25-
# report_fields_where_declared: true
22+

src/Domain/Analytics/Model/LinkTrackForward.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#[ORM\Entity(repositoryClass: LinkTrackForwardRepository::class)]
1313
#[ORM\Table(name: 'phplist_linktrack_forward')]
1414
#[ORM\UniqueConstraint(name: 'urlunique', columns: ['urlhash'])]
15-
#[ORM\Index(name: 'urlindex', columns: ['url'])]
1615
#[ORM\Index(name: 'uuididx', columns: ['uuid'])]
1716
class LinkTrackForward implements DomainModel, Identity
1817
{

src/Domain/Configuration/Model/I18n.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class I18n implements DomainModel
1919
private string $lan;
2020

2121
#[ORM\Id]
22-
#[ORM\Column(type: 'text')]
22+
#[ORM\Column(type: 'string', length: 255)]
2323
private string $original;
2424

2525
#[ORM\Column(type: 'text')]

src/Domain/Configuration/Model/UrlCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class UrlCache implements DomainModel, Identity
2020
#[ORM\GeneratedValue]
2121
private ?int $id = null;
2222

23-
#[ORM\Column(name: 'url', type: 'string', length: 2083)]
23+
#[ORM\Column(name: 'url', type: 'string', length: 255)]
2424
private string $url;
2525

2626
#[ORM\Column(name: 'lastmodified', type: 'integer', nullable: true)]

src/TestingSupport/Traits/DatabaseTestTrait.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,17 @@ protected function loadSchema(): void
8383
$schemaTool = new SchemaTool($this->entityManager);
8484
$metadata = $this->entityManager->getMetadataFactory()->getAllMetadata();
8585

86-
// Create all tables at once to handle dependencies properly
8786
try {
8887
$schemaTool->createSchema($metadata);
8988
} catch (ToolsException $e) {
90-
// If creating all tables at once fails, try to create them one by one
91-
// This is a fallback mechanism
9289
$connection = $this->entityManager->getConnection();
9390
$schemaManager = $connection->createSchemaManager();
9491

9592
foreach ($metadata as $classMetadata) {
9693
$tableName = $classMetadata->getTableName();
9794

9895
if (!$schemaManager->tablesExist([$tableName])) {
99-
try {
100-
$schemaTool->createSchema([$classMetadata]);
101-
} catch (ToolsException $e) {
102-
// Log the error but continue with other tables
103-
echo $e->getMessage() . PHP_EOL;
104-
}
96+
$schemaTool->createSchema([$classMetadata]);
10597
}
10698
}
10799
}

tests/Integration/Security/HashGeneratorTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ class HashGeneratorTest extends KernelTestCase
1818
{
1919
use DatabaseTestTrait;
2020

21+
protected static function getKernelClass(): string
22+
{
23+
return 'PhpList\Core\Core\ApplicationKernel';
24+
}
25+
2126
protected function setUp(): void
2227
{
2328
parent::setUp();

0 commit comments

Comments
 (0)