You are here

IndexTest.php in Elasticsearch Connector 8.5

File

tests/src/Unit/Entity/IndexTest.php
View source
<?php

namespace Drupal\Tests\elasticsearch_connector\Unit\Entity;

use Drupal\Tests\UnitTestCase;
use Drupal\elasticsearch_connector\Entity\Index;

/**
 * @coversDefaultClass \Drupal\elasticsearch_connector\Entity\Index
 *
 * @group elasticsearch_connector
 */
class IndexTest extends UnitTestCase {

  /**
   * @covers ::id
   */
  public function testId() {
    $index = new Index([
      'index_id' => 'foo',
    ], 'elasticsearch_index');
    $this
      ->assertEquals('foo', $index
      ->id());
  }

}

Classes