PluginDefinitionConverterTest.php in Plugin 8.2
File
tests/src/Functional/ParamConverter/PluginDefinitionConverterTest.php
View source
<?php
namespace Drupal\Tests\plugin\Functional\ParamConverter;
use Drupal\Tests\BrowserTestBase;
class PluginDefinitionConverterTest extends BrowserTestBase {
public static $modules = [
'plugin',
'plugin_test_helper',
'system',
];
protected $defaultTheme = 'stark';
public function testIntegration() {
$this
->drupalGet('plugin_test_helper/paramconverter/plugin_definition/plugin_test_helper_plugin');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('plugin_test_helper/paramconverter/plugin_definition/foo');
$this
->assertSession()
->statusCodeEquals(404);
}
}