Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
56
vendor/drupal/console/Test/Generator/PluginBlockGeneratorTest.php
vendored
Normal file
56
vendor/drupal/console/Test/Generator/PluginBlockGeneratorTest.php
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains Drupal\Console\Test\Generator\PluginBlockGeneratorTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\Console\Test\Generator;
|
||||
|
||||
use Drupal\Console\Generator\PluginBlockGenerator;
|
||||
use Drupal\Console\Test\DataProvider\PluginBlockDataProviderTrait;
|
||||
|
||||
class PluginBlockGeneratorTest extends GeneratorTest
|
||||
{
|
||||
use PluginBlockDataProviderTrait;
|
||||
|
||||
/**
|
||||
* PluginBlock generator test
|
||||
*
|
||||
* @param $module
|
||||
* @param $class_name
|
||||
* @param $label
|
||||
* @param $plugin_id
|
||||
* @param $services
|
||||
* @param $inputs
|
||||
*
|
||||
* @dataProvider commandData
|
||||
*/
|
||||
public function testGeneratePluginBlock(
|
||||
$module,
|
||||
$class_name,
|
||||
$label,
|
||||
$plugin_id,
|
||||
$services,
|
||||
$inputs
|
||||
) {
|
||||
$generator = new PluginBlockGenerator();
|
||||
$this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
|
||||
$this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
|
||||
$generator->setHelperSet($this->getHelperSet());
|
||||
|
||||
$generator->generate(
|
||||
$module,
|
||||
$class_name,
|
||||
$label,
|
||||
$plugin_id,
|
||||
$services,
|
||||
$inputs
|
||||
);
|
||||
|
||||
$this->assertTrue(
|
||||
file_exists($generator->getSite()->getPluginPath($module, 'Block').'/'.$class_name.'.php'),
|
||||
sprintf('%s does not exist', $class_name.'.php')
|
||||
);
|
||||
}
|
||||
}
|
Reference in a new issue