X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftests%2Fsrc%2FUnit%2FModuleMockerTrait.php;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftests%2Fsrc%2FUnit%2FModuleMockerTrait.php;h=1115939b1638add63b1afa15eba933f2ba2c3458;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/tests/src/Unit/ModuleMockerTrait.php b/web/modules/contrib/drupalmoduleupgrader/tests/src/Unit/ModuleMockerTrait.php new file mode 100644 index 000000000..1115939b1 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/tests/src/Unit/ModuleMockerTrait.php @@ -0,0 +1,31 @@ +at($dir); + vfsStream::newFile($id . '.info')->at($dir); + vfsStream::newFile($id . '.install')->at($dir); + vfsStream::newFile($id . '.test')->at($dir); + vfsStream::newDirectory('src')->at($dir); + + $config_dir = vfsStream::newDirectory('config')->at($dir); + vfsStream::newDirectory('install')->at($config_dir); + vfsStream::newDirectory('optional')->at($config_dir); + vfsStream::newDirectory('schema')->at($config_dir); + + return $dir; + } + +}