diff --git a/core/modules/views/tests/Drupal/views/Tests/Plugin/area/ResultTest.php b/core/modules/views/tests/Drupal/views/Tests/Plugin/area/ResultTest.php index 17ec3fc..9de3a9b 100644 --- a/core/modules/views/tests/Drupal/views/Tests/Plugin/area/ResultTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/Plugin/area/ResultTest.php @@ -11,6 +11,11 @@ use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\area\Result; +// @todo Remove this once the constant got converted. +if (!defined('DRUPAL_CORE_COMPATIBILITY')) { + define('DRUPAL_CORE_COMPATIBILITY', '8.x'); +} + /** * Tests the result area handler. * @@ -43,7 +48,7 @@ public static function getInfo() { public function setUp() { parent::setUp(); - $storage = $this->getMockBuilder('Drupal\views\Plugin\Core\Entity\View') + $storage = $this->getMockBuilder('Drupal\views\Entity\View') ->disableOriginalConstructor() ->setMethods(array('label')) ->getMock(); @@ -80,6 +85,8 @@ public function testQuery() { * The content to use when rendering the handler. * @param string $expected * The expected content string. + * @param int $items_per_page + * The items per page of the configuration. * * @dataProvider providerTestResultArea */