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