{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TYPO3 v11: Unit testing fails with Nimut\/testing-framework","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/935 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"935\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\"><\/style><div class=\"code\"><table class=\"log\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\">$ .Build\/bin\/phpunit --colors=never -c phpunit.xml\r\nPHPUnit 9.6.29 by Sebastian Bergmann and contributors.\r\n&#160;\nError in bootstrap script: Symfony\\Component\\Finder\\Exception\\DirectoryNotFoundException:\r\nThe &quot;web\/typo3conf\/ext\/iw_social\/.Build\/web\/typo3\/sysext\/*\/&quot; directory does not exist.\r\n#0 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/typo3\/cms-core\/Classes\/Package\/PackageManager.php(350): Symfony\\Component\\Finder\\Finder-&gt;in()\r\n#1 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/typo3\/cms-core\/Classes\/Package\/PackageManager.php(255): TYPO3\\CMS\\Core\\Package\\PackageManager-&gt;scanPackagePathsForExtensions()\r\n#2 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/typo3\/cms-core\/Classes\/Package\/UnitTestPackageManager.php(31): TYPO3\\CMS\\Core\\Package\\PackageManager-&gt;scanAvailablePackages()\r\n#3 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/typo3\/cms-core\/Classes\/Core\/Bootstrap.php(255): TYPO3\\CMS\\Core\\Package\\UnitTestPackageManager-&gt;initialize()\r\n#4 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/nimut\/testing-framework\/src\/TestingFramework\/Bootstrap\/AbstractBootstrap.php(247): TYPO3\\CMS\\Core\\Core\\Bootstrap::createPackageManager()\r\n#5 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/nimut\/testing-framework\/src\/TestingFramework\/Bootstrap\/AbstractBootstrap.php(81): Nimut\\TestingFramework\\Bootstrap\\AbstractBootstrap-&gt;initializePackageManager()\r\n#6 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/nimut\/testing-framework\/res\/Configuration\/UnitTestsBootstrap.php(35): Nimut\\TestingFramework\\Bootstrap\\AbstractBootstrap-&gt;bootstrapUnitTestSystem()\r\n#7 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/nimut\/testing-framework\/res\/Configuration\/UnitTestsBootstrap.php(36): PHPUnit\\Util\\FileLoader::{closure}()\r\n#8 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/src\/Util\/FileLoader.php(66): include_once('...')\r\n#9 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/src\/Util\/FileLoader.php(49): PHPUnit\\Util\\FileLoader::load()\r\n#10 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/src\/TextUI\/Command.php(567): PHPUnit\\Util\\FileLoader::checkAndLoad()\r\n#11 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/src\/TextUI\/Command.php(347): PHPUnit\\TextUI\\Command-&gt;handleBootstrap()\r\n#12 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/src\/TextUI\/Command.php(114): PHPUnit\\TextUI\\Command-&gt;handleArguments()\r\n#13 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/src\/TextUI\/Command.php(99): PHPUnit\\TextUI\\Command-&gt;run()\r\n#14 web\/typo3conf\/ext\/iw_social\/.Build\/vendor\/phpunit\/phpunit\/phpunit(107): PHPUnit\\TextUI\\Command::main()\r\n#15 web\/typo3conf\/ext\/iw_social\/.Build\/bin\/phpunit(122): include('...')\r\n#16 {main}<\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/935\/rev-raw\/541cb671ed8071702c426d6be5ae52eef3c750e5\/0-output.log\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/935#0-output.log\">0-output.log<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p><tt class=\"docutils literal\"><span class=\"pre\">typo3\/cms-composer-installers<\/span><\/tt> v4.x got installed, which <a class=\"reference external\" href=\"https:\/\/docs.typo3.org\/m\/typo3\/reference-coreapi\/11.5\/en-us\/ApiOverview\/DirectoryStructure\/Index.html#composer-installer-v4\">moves<\/a> the sysext extension directory from typo3\/sysext\/ to vendor\/typo3\/. TYPO3's own bootstrap didn't like that with unit tests.<\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/935\/rev-raw\/541cb671ed8071702c426d6be5ae52eef3c750e5\/1-solution.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/935#1-solution.rst\">1-solution.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
