[TASK] Add functional test for runtimeActivatedPackages 20/56120/2
authorNicole Cordes <typo3@cordes.co>
Mon, 12 Mar 2018 14:32:44 +0000 (15:32 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 12 Mar 2018 22:19:15 +0000 (23:19 +0100)
Resolves: #84215
Releases: master, 8.7, 7.6
Change-Id: I9a642bb90278b22e61b97634022d3ab7af514e10
Reviewed-on: https://review.typo3.org/56120
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Tests/Functional/Package/RuntimeActivatedPackagesTest.php [new file with mode: 0644]

diff --git a/typo3/sysext/core/Tests/Functional/Package/RuntimeActivatedPackagesTest.php b/typo3/sysext/core/Tests/Functional/Package/RuntimeActivatedPackagesTest.php
new file mode 100644 (file)
index 0000000..c6bdf47
--- /dev/null
@@ -0,0 +1,40 @@
+<?php
+namespace TYPO3\CMS\Core\Tests\Functional\Package;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
+use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
+
+/**
+ * Test case
+ */
+class RuntimeActivatedPackagesTest extends FunctionalTestCase
+{
+    protected $configurationToUseInTestInstance = [
+        'EXT' => [
+            'runtimeActivatedPackages' => [
+                'felogin'
+            ]
+        ]
+    ];
+
+    /**
+     * @test
+     */
+    public function runtimeActivatedPackageIsLoaded()
+    {
+        $this->assertTrue(ExtensionManagementUtility::isLoaded('felogin'));
+    }
+}