function SearchBlockPageIdUpdatePathTest::testRunUpdates
Tests update path for the search block's `page_id` setting from '' to NULL.
File
- 
              core/modules/ search/ tests/ src/ Functional/ Update/ SearchBlockPageIdUpdatePathTest.php, line 31 
Class
- SearchBlockPageIdUpdatePathTest
- Tests update path for the search block's `page_id` setting from '' to NULL.
Namespace
Drupal\Tests\search\Functional\UpdateCode
public function testRunUpdates() {
  $this->assertSame('', Block::load('olivero_search_form_narrow')->get('settings')['page_id']);
  $this->assertSame('', Block::load('olivero_search_form_wide')->get('settings')['page_id']);
  $this->runUpdates();
  $this->assertNull(Block::load('olivero_search_form_narrow')->get('settings')['page_id']);
  $this->assertNull(Block::load('olivero_search_form_wide')->get('settings')['page_id']);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
