You are here

public function CommandsTest::testEmptyInsertCommand in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Ajax/CommandsTest.php \Drupal\KernelTests\Core\Ajax\CommandsTest::testEmptyInsertCommand()

Checks empty content in commands does not throw exceptions.

@doesNotPerformAssertions

File

core/tests/Drupal/KernelTests/Core/Ajax/CommandsTest.php, line 70

Class

CommandsTest
Performs tests on AJAX framework commands.

Namespace

Drupal\KernelTests\Core\Ajax

Code

public function testEmptyInsertCommand() {
  (new InsertCommand('foobar', []))
    ->render();
}