function CommandsTest::testEmptyInsertCommand

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Ajax/CommandsTest.php \Drupal\KernelTests\Core\Ajax\CommandsTest::testEmptyInsertCommand()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Ajax/CommandsTest.php \Drupal\KernelTests\Core\Ajax\CommandsTest::testEmptyInsertCommand()
  3. 11.x 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 72

Class

CommandsTest
Performs tests on AJAX framework commands.

Namespace

Drupal\KernelTests\Core\Ajax

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.