Skip to content

Commit a3d2099

Browse files
committed
tests #179 Mark FunctionalTest::testConfiguredFileUploadSubscriber() as skipped if "vich/uploader-bundle" is not available (phansys)
This PR was merged into the 3.x branch. Discussion ---------- |Q |A | |--- |---| |Branch |3.x| |Bug fix? |no | |New feature? |no | |BC breaks? |no | |Deprecations?|no | |Tests pass? |yes| |Fixed tickets|n/a | |License |MIT| |Doc PR |n/a | Commits ------- 25e8e0c Mark `FunctionalTest::testConfiguredFileUploadSubscriber()` as skipped if "vich/uploader-bundle" is not available
2 parents 5594856 + 25e8e0c commit a3d2099

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Functional/FunctionalTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function testConfiguredTicketManager()
6161
*/
6262
public function testConfiguredFileUploadSubscriber()
6363
{
64+
if (!class_exists(Events::class)) {
65+
$this->markTestSkipped(sprintf('%s() requires vich/uploader-bundle to be installed.', __METHOD__));
66+
}
67+
6468
$eventDispatcher = static::$kernel->getContainer()->get('event_dispatcher');
6569
$listeners = $eventDispatcher->getListeners();
6670

0 commit comments

Comments
 (0)