Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-machtelinckx committed Oct 31, 2024
1 parent 39acd54 commit c75c56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions BDD_Creator/tests/functional/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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());
}

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');
Expand Down

0 comments on commit c75c56a

Please sign in to comment.