@@ -13,8 +13,8 @@ public function setUp(): void {
13
13
parent ::setUp ();
14
14
}
15
15
16
- public function testBootDefault () {
17
- $ phpBoot = Process::runOk ($ this ->cv ("php:boot " ));
16
+ public function testBootFull () {
17
+ $ phpBoot = Process::runOk ($ this ->cv ("php:boot --level=full " ));
18
18
$ this ->assertRegExp (';CIVICRM_SETTINGS_PATH; ' , $ phpBoot ->getOutput ());
19
19
20
20
$ helloPhp = escapeshellarg ($ phpBoot ->getOutput ()
@@ -24,6 +24,18 @@ public function testBootDefault() {
24
24
$ this ->assertRegExp ('/^count is [0-9]+$/ ' , $ phpRun ->getOutput ());
25
25
}
26
26
27
+ public function testBootCmsFull () {
28
+ $ phpBoot = Process::runOk ($ this ->cv ("php:boot --level=cms-full " ));
29
+ $ this ->assertRegExp (';BEGINPHP; ' , $ phpBoot ->getOutput ());
30
+ $ this ->assertRegExp (';ENDPHP; ' , $ phpBoot ->getOutput ());
31
+
32
+ $ helloPhp = escapeshellarg ($ phpBoot ->getOutput ()
33
+ . 'printf("count is %s\n", CRM_Core_DAO::singleValueQuery("select count(*) from civicrm_contact")); '
34
+ );
35
+ $ phpRun = Process::runOk (new \Symfony \Component \Process \Process ("php -r $ helloPhp " ));
36
+ $ this ->assertRegExp ('/^count is [0-9]+$/ ' , $ phpRun ->getOutput ());
37
+ }
38
+
27
39
public function testBootClassLoader () {
28
40
$ phpBoot = Process::runOk ($ this ->cv ("php:boot --level=classloader " ));
29
41
$ this ->assertRegExp (';ClassLoader; ' , $ phpBoot ->getOutput ());
0 commit comments