Skip to content

Commit cf26597

Browse files
committed
PUSH
-> Backend tests
1 parent 73b7460 commit cf26597

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

backend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.php-cs-fixer.cache
2+
.phpunit.result.cache

backend/tests/HelloWorldTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
use PHPUnit\Framework\TestCase;
3+
4+
class HelloWorldTest extends TestCase
5+
{
6+
public function testHelloWorld()
7+
{
8+
$this->assertEquals('Hello, World!', 'Hello, World!');
9+
}
10+
}

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ services:
1616

1717
frontend:
1818
build:
19-
context: ./dockerfiles/frontend
19+
context: .
20+
dockerfile: ./dockerfiles/frontend
2021
volumes:
2122
- ./:/var/www/
2223
restart: unless-stopped

dockerfiles/frontend/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ FROM node:20-alpine
22

33
WORKDIR /var/www/
44

5-
COPY . /var/www
6-
75
RUN ls /var/www/
86

97
RUN yarn install

0 commit comments

Comments
 (0)