function InlineBlockUsageTest::testEmptyDeleteUsageCall
Same name in other branches
- 8.9.x core/modules/layout_builder/tests/src/Unit/InlineBlockUsageTest.php \Drupal\Tests\layout_builder\Unit\InlineBlockUsageTest::testEmptyDeleteUsageCall()
- 10 core/modules/layout_builder/tests/src/Unit/InlineBlockUsageTest.php \Drupal\Tests\layout_builder\Unit\InlineBlockUsageTest::testEmptyDeleteUsageCall()
- 11.x core/modules/layout_builder/tests/src/Unit/InlineBlockUsageTest.php \Drupal\Tests\layout_builder\Unit\InlineBlockUsageTest::testEmptyDeleteUsageCall()
Tests calling deleteUsage() with empty array.
@covers ::deleteUsage
File
-
core/
modules/ layout_builder/ tests/ src/ Unit/ InlineBlockUsageTest.php, line 21
Class
- InlineBlockUsageTest
- @coversDefaultClass \Drupal\layout_builder\InlineBlockUsage
Namespace
Drupal\Tests\layout_builder\UnitCode
public function testEmptyDeleteUsageCall() {
$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.