Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions tests/GaletteAuto/tests/units/Auto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down
10 changes: 0 additions & 10 deletions tests/GaletteAuto/tests/units/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 0 additions & 10 deletions tests/GaletteAuto/tests/units/Brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 0 additions & 10 deletions tests/GaletteAuto/tests/units/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 0 additions & 10 deletions tests/GaletteAuto/tests/units/Finition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
14 changes: 0 additions & 14 deletions tests/GaletteAuto/tests/units/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 0 additions & 10 deletions tests/GaletteAuto/tests/units/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 0 additions & 10 deletions tests/GaletteAuto/tests/units/Transmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down