File tree Expand file tree Collapse file tree
tests/GaletteAuto/tests/units Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments