@@ -18,7 +23,7 @@ class UrlProcessorHandlerTest extends UnitTestCase {
* Tests that the processor correctly throws an exception.
*/
publicfunctiontestEmptyProcessorConfiguration(){
$this->setExpectedException('\Drupal\facets\Exception\InvalidProcessorException',"The UrlProcessorHandler doesn't have the required 'facet' in the configuration array.");
$this->setExpectedException(InvalidProcessorException::class,"The UrlProcessorHandler doesn't have the required 'facet' in the configuration array.");
newUrlProcessorHandler([],'test',[]);
}
...
...
@@ -26,7 +31,7 @@ class UrlProcessorHandlerTest extends UnitTestCase {
* Tests that the processor correctly throws an exception.
$this->setExpectedException('\Drupal\facets\Exception\InvalidProcessorException',"The UrlProcessorHandler doesn't have the required 'facet' in the configuration array.");
$this->setExpectedException(InvalidProcessorException::class,"The UrlProcessorHandler doesn't have the required 'facet' in the configuration array.");
@@ -55,7 +63,7 @@ class QueryStringTest extends UnitTestCase {
* Tests that the processor correctly throws an exception.
*/
publicfunctiontestEmptyProcessorConfiguration(){
$this->setExpectedException('\Drupal\facets\Exception\InvalidProcessorException',"The url processor doesn't have the required 'facet' in the configuration array.");
$this->setExpectedException(InvalidProcessorException::class,"The url processor doesn't have the required 'facet' in the configuration array.");
newQueryString([],'test',[],newRequest());
}
...
...
@@ -147,7 +155,7 @@ class QueryStringTest extends UnitTestCase {