Add example module with a deprecation
This commit is contained in:
parent
e414469ca0
commit
c3b71960f5
3 changed files with 48 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\example\Functional;
|
||||
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
class DisplayMessageTest extends BrowserTestBase {
|
||||
|
||||
protected $defaultTheme = 'stable';
|
||||
|
||||
protected static $modules = ['filter', 'node', 'example'];
|
||||
|
||||
/** @test */
|
||||
public function a_message_is_displayed_on_nodes(): void {
|
||||
$this->drupalCreateContentType(['type' => 'page']);
|
||||
|
||||
$this->drupalCreateNode();
|
||||
|
||||
$this->drupalGet('node/1');
|
||||
|
||||
$this->assertText('This is a node.');
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue