-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1481 from garak/remove-test-annotations
🎨 remove annotations from tests
- Loading branch information
Showing
9 changed files
with
91 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM php:8.4-alpine | ||
|
||
ARG MONGODB_VERSION=1.20.0 | ||
|
||
# Install mongo | ||
RUN set -eux; \ | ||
apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS \ | ||
openssl-dev \ | ||
; \ | ||
pecl install \ | ||
mongodb-${MONGODB_VERSION} \ | ||
; \ | ||
docker-php-ext-enable \ | ||
mongodb \ | ||
; \ | ||
pecl clear-cache; \ | ||
\ | ||
runDeps="$( \ | ||
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ | ||
| tr ',' '\n' \ | ||
| sort -u \ | ||
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ | ||
)"; \ | ||
apk add --no-cache --virtual .api-add-phpexts-rundeps $runDeps \ | ||
curl \ | ||
; | ||
|
||
RUN curl -s https://getcomposer.org/installer | php | ||
|
||
RUN mv composer.phar /usr/local/bin/composer | ||
|
||
WORKDIR /srv/vich-uploader | ||
|
||
# prevent the reinstallation of vendors at every changes in the source code | ||
|
||
#COPY ./docker/script/runTests.sh ./runTests.sh | ||
COPY . ./ | ||
|
||
RUN set -eux; \ | ||
sed -i 's/"league\/flysystem": "<2.0"/"league\/flysystem": "<2.0", "symfony\/http-kernel": "6.0.*,>6.4.8 || 7.1.*,>7.1.1"/' composer.json; \ | ||
composer update --prefer-dist --ignore-platform-reqs; \ | ||
composer clear-cache | ||
|
||
CMD ["/init"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ vich_uploader: | |
db_driver: orm | ||
|
||
metadata: | ||
type: annotation | ||
type: attribute | ||
|
||
mappings: | ||
image_mapping: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ | |
* AnnotationDriverTest. | ||
* | ||
* @author Kévin Gomez <[email protected]> | ||
* | ||
* @group legacy | ||
*/ | ||
final class AnnotationDriverTest extends TestCase | ||
{ | ||
|
@@ -34,6 +36,10 @@ final class AnnotationDriverTest extends TestCase | |
|
||
protected function setUp(): void | ||
{ | ||
if (!class_exists(Reader::class)) { | ||
$this->markTestSkipped('The doctrine/annotations package is not installed'); | ||
} | ||
|
||
// setup ManagerRegistry mock like Symfony\Bridge\Doctrine tests | ||
$this->connection = $this->createMock(Connection::class); | ||
|
||
|