Skip to content

Commit b231490

Browse files
NeoRazorXclaude
andcommitted
Los tests cargan los modelos del core antes de generar datos
Evita el error "cant create table cuentasbcocli in transaction" al instanciar por primera vez un modelo dentro de la transacción de los generadores, que dejaba la tabla sin crear. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 59175a9 commit b231490

19 files changed

Lines changed: 19 additions & 0 deletions

‎Test/main/AgenciasTransportesTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class AgenciasTransportesTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/AgentesTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class AgentesTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/AlbaranesClientesTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ final class AlbaranesClientesTest extends TestCase
3636
public static function setUpBeforeClass(): void
3737
{
3838
self::setDefaultSettings();
39+
self::loadCoreModels();
3940
}
4041

4142
public function testCreate(): void

‎Test/main/AlbaranesProveedoresTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ final class AlbaranesProveedoresTest extends TestCase
3434
public static function setUpBeforeClass(): void
3535
{
3636
self::setDefaultSettings();
37+
self::loadCoreModels();
3738
}
3839

3940
public function testCreate(): void

‎Test/main/AlmacenesTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class AlmacenesTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/AtributosTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class AtributosTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/ClientesTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class ClientesTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/ContactosTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class ContactosTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/EmpresasTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class EmpresasTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

‎Test/main/FabricantesTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class FabricantesTest extends TestCase
3333
public static function setUpBeforeClass(): void
3434
{
3535
self::setDefaultSettings();
36+
self::loadCoreModels();
3637
}
3738

3839
public function testCreate(): void

0 commit comments

Comments
 (0)