You are here

public function EntityTypeBundleInfoTest::entityTypeHasBundlesMethodCachesData in Entity Construction Kit (ECK) 8

Tests caching of data.

@test

File

tests/src/Unit/EntityTypeBundleInfoTest.php, line 88

Class

EntityTypeBundleInfoTest
Tests the form element implementation.

Namespace

Drupal\Tests\eck\Unit

Code

public function entityTypeHasBundlesMethodCachesData() {
  $this->cacheBackendMock = $this
    ->getMockForAbstractClass(CacheBackendInterface::class);
  $this->cacheBackendMock
    ->expects($this
    ->once())
    ->method('set');
  $sut = $this
    ->createNewTestSubject();
  $sut
    ->entityTypeHasBundles('test');
}