$this->assertNoFieldByXPath('//select[@name="settings[view_mode]"]', NULL, 'View mode setting hidden because only one exists');
// Check that the block exists in the database.
- $blocks = entity_load_multiple_by_properties('block_content', ['info' => $edit['info[0][value]']]);
+ $blocks = \Drupal::entityTypeManager()
+ ->getStorage('block_content')
+ ->loadByProperties(['info' => $edit['info[0][value]']]);
$block = reset($blocks);
$this->assertTrue($block, 'Custom Block found in database.');
$this->assertFieldByXPath('//select[@name="settings[view_mode]"]/option[@selected="selected"]', 'test_view_mode', 'View mode changed to Test View Mode');
// Check that the block exists in the database.
- $blocks = entity_load_multiple_by_properties('block_content', ['info' => $edit['info[0][value]']]);
+ $blocks = \Drupal::entityTypeManager()
+ ->getStorage('block_content')
+ ->loadByProperties(['info' => $edit['info[0][value]']]);
$block = reset($blocks);
$this->assertTrue($block, 'Custom Block found in database.');
]), 'Basic block created.');
// Check that the block exists in the database.
- $blocks = entity_load_multiple_by_properties('block_content', ['info' => $edit['info[0][value]']]);
+ $blocks = \Drupal::entityTypeManager()
+ ->getStorage('block_content')
+ ->loadByProperties(['info' => $edit['info[0][value]']]);
$block = reset($blocks);
$this->assertTrue($block, 'Default Custom Block found in database.');
}