public function SearchPageRepositoryTest::testClearDefaultSearchPage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\SearchPageRepositoryTest::testClearDefaultSearchPage()
Tests the clearDefaultSearchPage() method.
File
- core/
modules/ search/ tests/ src/ Unit/ SearchPageRepositoryTest.php, line 145 - Contains \Drupal\Tests\search\Unit\SearchPageRepositoryTest.
Class
- SearchPageRepositoryTest
- @coversDefaultClass \Drupal\search\SearchPageRepository @group search
Namespace
Drupal\Tests\search\UnitCode
public function testClearDefaultSearchPage() {
$config = $this
->getMockBuilder('Drupal\\Core\\Config\\Config')
->disableOriginalConstructor()
->getMock();
$config
->expects($this
->once())
->method('clear')
->with('default_page')
->will($this
->returnValue($config));
$this->configFactory
->expects($this
->once())
->method('getEditable')
->with('search.settings')
->will($this
->returnValue($config));
$this->searchPageRepository
->clearDefaultSearchPage();
}