diff --git a/tests/GaletteAuto/tests/units/Auto.php b/tests/GaletteAuto/tests/units/Auto.php index 26320c3..40675d2 100644 --- a/tests/GaletteAuto/tests/units/Auto.php +++ b/tests/GaletteAuto/tests/units/Auto.php @@ -41,32 +41,6 @@ public function setUp(): void { parent::setUp(); $this->plugins = $this->container->get(\Galette\Core\Plugins::class); - $this->initStatus(); - } - - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $tables = [ - \GaletteAuto\History::TABLE, - \GaletteAuto\Auto::TABLE, - \GaletteAuto\Model::TABLE, - \GaletteAuto\Brand::TABLE, - \GaletteAuto\Color::TABLE, - \GaletteAuto\Body::TABLE, - \GaletteAuto\Finition::TABLE, - \GaletteAuto\State::TABLE, - \GaletteAuto\Transmission::TABLE, - ]; - - foreach ($tables as $table) { - $delete = $this->zdb->delete(AUTO_PREFIX . $table); - $this->zdb->execute($delete); - } - - parent::tearDown(); } /** diff --git a/tests/GaletteAuto/tests/units/Body.php b/tests/GaletteAuto/tests/units/Body.php index a36eb6e..41acf5a 100644 --- a/tests/GaletteAuto/tests/units/Body.php +++ b/tests/GaletteAuto/tests/units/Body.php @@ -32,16 +32,6 @@ class Body extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Body::TABLE); - $this->zdb->execute($delete); - parent::tearDown(); - } - /** * Test empty */ diff --git a/tests/GaletteAuto/tests/units/Brand.php b/tests/GaletteAuto/tests/units/Brand.php index 79c55a1..61ea4d9 100644 --- a/tests/GaletteAuto/tests/units/Brand.php +++ b/tests/GaletteAuto/tests/units/Brand.php @@ -32,16 +32,6 @@ class Brand extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Brand::TABLE); - $this->zdb->execute($delete); - parent::tearDown(); - } - /** * Test empty */ diff --git a/tests/GaletteAuto/tests/units/Color.php b/tests/GaletteAuto/tests/units/Color.php index d3e751a..6a28d7d 100644 --- a/tests/GaletteAuto/tests/units/Color.php +++ b/tests/GaletteAuto/tests/units/Color.php @@ -32,16 +32,6 @@ class Color extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Color::TABLE); - $this->zdb->execute($delete); - parent::tearDown(); - } - /** * Test empty */ diff --git a/tests/GaletteAuto/tests/units/Finition.php b/tests/GaletteAuto/tests/units/Finition.php index 87125a8..b171ac1 100644 --- a/tests/GaletteAuto/tests/units/Finition.php +++ b/tests/GaletteAuto/tests/units/Finition.php @@ -32,16 +32,6 @@ class Finition extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Finition::TABLE); - $this->zdb->execute($delete); - parent::tearDown(); - } - /** * Test empty */ diff --git a/tests/GaletteAuto/tests/units/Model.php b/tests/GaletteAuto/tests/units/Model.php index ec925da..d323764 100644 --- a/tests/GaletteAuto/tests/units/Model.php +++ b/tests/GaletteAuto/tests/units/Model.php @@ -32,20 +32,6 @@ class Model extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Model::TABLE); - $this->zdb->execute($delete); - - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Brand::TABLE); - $this->zdb->execute($delete); - - parent::tearDown(); - } - /** * Test add and update */ diff --git a/tests/GaletteAuto/tests/units/State.php b/tests/GaletteAuto/tests/units/State.php index aac9f28..b83b8c9 100644 --- a/tests/GaletteAuto/tests/units/State.php +++ b/tests/GaletteAuto/tests/units/State.php @@ -32,16 +32,6 @@ class State extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\State::TABLE); - $this->zdb->execute($delete); - parent::tearDown(); - } - /** * Test empty */ diff --git a/tests/GaletteAuto/tests/units/Transmission.php b/tests/GaletteAuto/tests/units/Transmission.php index ba27c2f..414169c 100644 --- a/tests/GaletteAuto/tests/units/Transmission.php +++ b/tests/GaletteAuto/tests/units/Transmission.php @@ -32,16 +32,6 @@ class Transmission extends GaletteTestCase { protected int $seed = 20240130141727; - /** - * Cleanup after each test method - */ - public function tearDown(): void - { - $delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Transmission::TABLE); - $this->zdb->execute($delete); - parent::tearDown(); - } - /** * Test empty */