diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 337a318..45f9c82 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -6,14 +6,6 @@ jobs: build-test: runs-on: ubuntu-latest - services: - mysql: - image: mysql:5.7 - env: - MYSQL_ROOT_PASSWORD: root - ports: - - 3307:3306 - steps: # 1. Set up PHP 8.2 diff --git a/BDD_Creator/tests/functional/DatabaseTest.php b/BDD_Creator/tests/functional/DatabaseTest.php index 4b23019..20135e2 100644 --- a/BDD_Creator/tests/functional/DatabaseTest.php +++ b/BDD_Creator/tests/functional/DatabaseTest.php @@ -17,7 +17,7 @@ class DatabaseTest extends TestCase { public function testCreateDatabase() { - $db = new Database('mysql', 'root', 'root'); + $db = new Database('bdd_depresion_mysql_1', 'root', 'root'); $db->connect(); $db->createDatabase('test'); $this->assertContains('test', $db->getCollectionDatabases()); @@ -25,7 +25,7 @@ public function testCreateDatabase() public function testCreateTable() { - $db = new Database('mysql', 'root', 'root'); + $db = new Database('bdd_depresion_mysql_1', 'root', 'root'); $db->connect(); $db->useDatabase('test'); $db->createTable('user', 'id INT PRIMARY KEY AUTO_INCREMENT PRIMARY KEY');