From 849293134d8f4a7e144fe519738c7ffa5ae32e63 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 25 Sep 2021 00:28:31 -0700 Subject: [PATCH] tests/events/ - Add some assertions for 'civi.region.render' --- tests/events/civi_region_render.evch.php | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/events/civi_region_render.evch.php diff --git a/tests/events/civi_region_render.evch.php b/tests/events/civi_region_render.evch.php new file mode 100644 index 0000000000..b374ff6407 --- /dev/null +++ b/tests/events/civi_region_render.evch.php @@ -0,0 +1,33 @@ +assertTrue($e->region instanceof \CRM_Core_Region); + /** @var \CRM_Core_Region $region */ + $region = $e->region; + $this->assertRegexp($this->validRegion, $region->_name); + foreach ($region->getAll() as $snippet) { + $this->assertContains($snippet['type'], $this->validSnippetTypes); + } + } + +}; -- 2.25.1