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