You are here

public function GeshiFieldTest::testAddField in GeSHi Filter for syntax highlighting 8

Same name and namespace in other branches
  1. 8.2 geshifield/tests/src/Functional/GeshiFieldTest.php \Drupal\Tests\geshifield\Functional\GeshiFieldTest::testAddField()

Test if we can add the field and a node on it.

File

geshifield/tests/src/Functional/GeshiFieldTest.php, line 112

Class

GeshiFieldTest
Tests for GeshiField in node content.

Namespace

Drupal\Tests\geshifield\Functional

Code

public function testAddField() {
  $this
    ->addField('geshifield', 'geshi', 'GeshiFilter Field');
  $this
    ->addNode('title', 'body', '<?php echo("hi"); ?>', 'php');
}