From 1334236bb6059b2302a760196ce7885df379e984 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 6 Mar 2022 11:45:31 +0100 Subject: toml to yaml --- tests/Test.php | 180 ++++++++++++++++++++++++++++++--------------------------- 1 file changed, 95 insertions(+), 85 deletions(-) (limited to 'tests') diff --git a/tests/Test.php b/tests/Test.php index 2888d81..b111a82 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -19,64 +19,67 @@ class Test extends TestCase // add content $contentRoot = dirname(__DIR__) . '/content'; - @mkdir($contentRoot . '/config'); - @mkdir($contentRoot . '/customername/formname/config'); - @mkdir($contentRoot . '/customername/formname/fields'); - @mkdir($contentRoot . '/customername/pagedform/config'); - @mkdir($contentRoot . '/customername/pagedform/fields'); + @mkdir($contentRoot . '/config', recursive: true); + @mkdir($contentRoot . '/customername/formname/config', recursive: true); + @mkdir($contentRoot . '/customername/formname/fields', recursive: true); + @mkdir($contentRoot . '/customername/pagedform/config', recursive: true); + @mkdir($contentRoot . '/customername/pagedform/fields', recursive: true); # root config - file_put_contents($contentRoot . '/config/config.toml', <<addFilter('validator:formname:field:name', 'validate_formname_name'); EOF); # pagedform fields - file_put_contents($contentRoot . '/customername/pagedform/fields/_fields.toml', <<