/**
  * Tests the clearCachedBundles() method.
  *
  * @covers ::clearCachedBundles
  */
 public function testClearCachedBundles()
 {
     $this->setUpEntityManager();
     $this->typedDataManager->clearCachedDefinitions()->shouldBeCalled();
     $this->cacheTagsInvalidator->invalidateTags(['entity_bundles'])->shouldBeCalled();
     $this->entityManager->clearCachedBundles();
 }
 /**
  * Tests the clearCachedBundles() method.
  *
  * @covers ::clearCachedBundles
  */
 public function testClearCachedBundles()
 {
     $this->setUpEntityManager();
     $this->cacheTagsInvalidator->expects($this->once())->method('invalidateTags')->with(array('entity_bundles'));
     $this->entityManager->clearCachedBundles();
 }
Esempio n. 3
0
 /**
  * Tests the clearCachedBundles() method.
  *
  * @covers ::clearCachedBundles()
  */
 public function testClearCachedBundles()
 {
     $this->setUpEntityManager();
     $this->cache->expects($this->once())->method('deleteTags')->with(array('entity_bundles' => TRUE));
     $this->entityManager->clearCachedBundles();
 }