Skip to content

Commit 47a53b4

Browse files
committed
Fix tests following changes on Core
1 parent 708acc4 commit 47a53b4

8 files changed

Lines changed: 0 additions & 100 deletions

File tree

tests/GaletteAuto/tests/units/Auto.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,32 +41,6 @@ public function setUp(): void
4141
{
4242
parent::setUp();
4343
$this->plugins = $this->container->get(\Galette\Core\Plugins::class);
44-
$this->initStatus();
45-
}
46-
47-
/**
48-
* Cleanup after each test method
49-
*/
50-
public function tearDown(): void
51-
{
52-
$tables = [
53-
\GaletteAuto\History::TABLE,
54-
\GaletteAuto\Auto::TABLE,
55-
\GaletteAuto\Model::TABLE,
56-
\GaletteAuto\Brand::TABLE,
57-
\GaletteAuto\Color::TABLE,
58-
\GaletteAuto\Body::TABLE,
59-
\GaletteAuto\Finition::TABLE,
60-
\GaletteAuto\State::TABLE,
61-
\GaletteAuto\Transmission::TABLE,
62-
];
63-
64-
foreach ($tables as $table) {
65-
$delete = $this->zdb->delete(AUTO_PREFIX . $table);
66-
$this->zdb->execute($delete);
67-
}
68-
69-
parent::tearDown();
7044
}
7145

7246
/**

tests/GaletteAuto/tests/units/Body.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class Body extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Body::TABLE);
41-
$this->zdb->execute($delete);
42-
parent::tearDown();
43-
}
44-
4535
/**
4636
* Test empty
4737
*/

tests/GaletteAuto/tests/units/Brand.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class Brand extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Brand::TABLE);
41-
$this->zdb->execute($delete);
42-
parent::tearDown();
43-
}
44-
4535
/**
4636
* Test empty
4737
*/

tests/GaletteAuto/tests/units/Color.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class Color extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Color::TABLE);
41-
$this->zdb->execute($delete);
42-
parent::tearDown();
43-
}
44-
4535
/**
4636
* Test empty
4737
*/

tests/GaletteAuto/tests/units/Finition.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class Finition extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Finition::TABLE);
41-
$this->zdb->execute($delete);
42-
parent::tearDown();
43-
}
44-
4535
/**
4636
* Test empty
4737
*/

tests/GaletteAuto/tests/units/Model.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,6 @@ class Model extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Model::TABLE);
41-
$this->zdb->execute($delete);
42-
43-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Brand::TABLE);
44-
$this->zdb->execute($delete);
45-
46-
parent::tearDown();
47-
}
48-
4935
/**
5036
* Test add and update
5137
*/

tests/GaletteAuto/tests/units/State.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class State extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\State::TABLE);
41-
$this->zdb->execute($delete);
42-
parent::tearDown();
43-
}
44-
4535
/**
4636
* Test empty
4737
*/

tests/GaletteAuto/tests/units/Transmission.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class Transmission extends GaletteTestCase
3232
{
3333
protected int $seed = 20240130141727;
3434

35-
/**
36-
* Cleanup after each test method
37-
*/
38-
public function tearDown(): void
39-
{
40-
$delete = $this->zdb->delete(AUTO_PREFIX . \GaletteAuto\Transmission::TABLE);
41-
$this->zdb->execute($delete);
42-
parent::tearDown();
43-
}
44-
4535
/**
4636
* Test empty
4737
*/

0 commit comments

Comments
 (0)