function BlockContentStatusInfoUpdatePathTest::testRunUpdates
Tests block_content_post_update_remove_block_content_status_info_keys.
File
-
core/
modules/ block_content/ tests/ src/ Functional/ Update/ BlockContentStatusInfoUpdatePathTest.php, line 31
Class
- BlockContentStatusInfoUpdatePathTest
- Tests block_content_post_update_remove_block_content_status_info_keys.
Namespace
Drupal\Tests\block_content\Functional\UpdateCode
public function testRunUpdates() : void {
$this->assertArrayHasKey('info', Block::load('anotherblock')->get('settings'));
$this->assertArrayHasKey('status', Block::load('anotherblock')->get('settings'));
$this->runUpdates();
$this->assertArrayNotHasKey('info', Block::load('anotherblock')->get('settings'));
$this->assertArrayNotHasKey('status', Block::load('anotherblock')->get('settings'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.