You are here

public function ConfigEntityStorageTest::testSaveInvalid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityStorageTest::testSaveInvalid()

@covers ::save

@expectedException \Drupal\Core\Entity\EntityMalformedException @expectedExceptionMessage The entity does not have an ID.

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php, line 482
Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityStorageTest.

Class

ConfigEntityStorageTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityStorage @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testSaveInvalid() {
  $this->cacheTagsInvalidator
    ->expects($this
    ->never())
    ->method('invalidateTags');
  $entity = $this
    ->getMockEntity();
  $this->entityStorage
    ->save($entity);
}