function InlineBlockUsageTest::testEmptyDeleteUsageCall

Tests calling deleteUsage() with empty array.

@legacy-covers ::deleteUsage

File

core/modules/layout_builder/tests/src/Unit/InlineBlockUsageTest.php, line 25

Class

InlineBlockUsageTest
Tests Drupal\layout_builder\InlineBlockUsage.

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function testEmptyDeleteUsageCall() : void {
  $connection = $this->prophesize(Connection::class);
  $connection->delete('inline_block_usage')
    ->shouldNotBeCalled();
  (new InlineBlockUsage($connection->reveal()))
    ->deleteUsage([]);
}

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