You are here

public function ConfigEntityBaseUnitTest::testToArrayFallback in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testToArrayFallback()

@covers ::toArray

@expectedException \Drupal\Core\Config\Schema\SchemaIncompleteException

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php, line 540
Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest.

Class

ConfigEntityBaseUnitTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityBase @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testToArrayFallback() {
  $this->entityType
    ->expects($this
    ->any())
    ->method('getPropertiesToExport')
    ->willReturn([]);
  $this->entity
    ->toArray();
}