18 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
22 \
Magento\Framework\View\DesignInterface::class
23 )->setDefaultDesignTheme();
28 \
Magento\Framework\View\Design\ThemeInterface::class
32 $file = \Magento\TestFramework\Helper\Bootstrap::getObjectmanager()->get(
33 \
Magento\Framework\View\FileSystem::class
34 )->getTemplateFileName(
38 $this->assertInternalType(
'string', $file,
"Block class: {$class} {$template}");
39 $this->assertFileExists($file,
"Block class: {$class}");
41 $this->allTemplatesDataProvider()
49 public function allTemplatesDataProvider()
55 \
Magento\Store\Model\StoreManagerInterface::class
56 )->getStore()->setWebsiteId(
63 if (!in_array($module, $this->_getEnabledModules()) || in_array($blockClass, $skippedBlocks)) {
66 $class = new \ReflectionClass($blockClass);
67 if (
$class->isAbstract() || !
$class->isSubclassOf(\
Magento\Framework\View\Element\Template::class)) {
72 if ($module ==
'Magento_Backend' || strpos(
75 ) !==
false || strpos(
78 ) !==
false ||
$class->isSubclassOf(
79 \
Magento\Backend\Block\Template::class
93 \
Magento\Framework\Config\ScopeInterface::class
108 \
Magento\Customer\Model\GroupManagement::NOT_LOGGED_IN_ID,
109 \
Magento\Customer\Model\GroupManagement::NOT_LOGGED_IN_ID
114 $templates[$module .
', ' .
$template .
', ' . $blockClass .
', ' . $area] = [
123 }
catch (\Exception $e) {
125 "Corrupted data provider. Last known block instantiation attempt: '{$blockClass}'." .
138 foreach (glob(
__DIR__ .
'/_files/skip_template_blocks*.php') as $file) {
139 $blocks = include $file;
defined('TESTS_BP')||define('TESTS_BP' __DIR__
$_option $_optionId $class
static collectModuleClasses($subTypePattern='[A-Za-z]+')
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
static getObjectManager()