Skip to content

Commit

Permalink
hell yeahhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-machtelinckx committed Oct 31, 2024
1 parent 62e22c6 commit eca683c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions BDD_Creator/tests/functional/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ public function updateRow(): void
$db->updateRow('restaurant', 'id', 1, ['name' => 'McGronalds', 'age' => 55, 'date' => '2022-03-01', 'description' => 'slow food']);
}

public function testDeleteRow():void
{
$db = new Database('mysql', 'root', 'root');
$db->connect();
$db->useDatabase('test');
$db->dropRow('restaurant', 'id', 1);
// $this->assertNotContains('McGronalds', $db->getRow('restaurant', 'name', 'McGronalds'));

}
// public function testDeleteRow():void
// {
// $db = new Database('mysql', 'root', 'root');
// $db->connect();
// $db->useDatabase('test');
// $db->dropRow('restaurant', 'id', 1);
// // $this->assertNotContains('McGronalds', $db->getRow('restaurant', 'name', 'McGronalds'));

// }


public function testDropDatabase(): void
Expand Down

0 comments on commit eca683c

Please sign in to comment.