You are here

class InlineBlockUsageTest in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Unit/InlineBlockUsageTest.php \Drupal\Tests\layout_builder\Unit\InlineBlockUsageTest
  2. 9 core/modules/layout_builder/tests/src/Unit/InlineBlockUsageTest.php \Drupal\Tests\layout_builder\Unit\InlineBlockUsageTest

@coversDefaultClass \Drupal\layout_builder\InlineBlockUsage

@group layout_builder

Hierarchy

  • class \Drupal\Tests\UnitTestCase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, PhpUnitWarnings

Expanded class hierarchy of InlineBlockUsageTest

File

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

Namespace

Drupal\Tests\layout_builder\Unit
View source
class InlineBlockUsageTest extends UnitTestCase {

  /**
   * Tests calling deleteUsage() with empty array.
   *
   * @covers ::deleteUsage
   */
  public function testEmptyDeleteUsageCall() {
    $connection = $this
      ->prophesize(Connection::class);
    $connection
      ->delete('inline_block_usage')
      ->shouldNotBeCalled();
    (new InlineBlockUsage($connection
      ->reveal()))
      ->deleteUsage([]);
  }

}

Members