summaryrefslogtreecommitdiffstats
path: root/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php')
-rw-r--r--core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php
index 167014e..0ae892a 100644
--- a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php
+++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php
@@ -8,6 +8,7 @@
namespace Drupal\custom_block\Tests;
use Drupal\Core\Database\Database;
+use Drupal\custom_block\Entity\CustomBlock;
/**
* Tests creating and saving a block.
@@ -180,7 +181,7 @@ class CustomBlockCreationTest extends CustomBlockTestBase {
$url = 'admin/structure/block/add/custom_block:' . $block->uuid() . '/' . \Drupal::config('system.theme')->get('default');
$this->drupalPostForm($url, $instance, t('Save block'));
- $block = custom_block_load(1);
+ $block = CustomBlock::load(1);
// Test getInstances method.
$this->assertEqual(1, count($block->getInstances()));