Namespace
Drupal\Tests\field_example\Functional
File
-
modules/field_example/tests/src/Functional/FieldExampleMenuTest.php
View source
<?php
namespace Drupal\Tests\field_example\Functional;
class FieldExampleMenuTest extends FieldExampleBrowserTestBase {
protected static $modules = [
'field_example',
];
protected $profile = 'minimal';
public function testFieldExampleLink() {
$assert = $this->assertSession();
$this->drupalGet('');
$assert->linkByHrefExists('examples/field-example');
}
public function testBlockExampleMenu() {
$assert = $this->assertSession();
$this->drupalGet('examples/field-example');
$assert->statusCodeEquals(200);
}
}
Classes