Commit d97b4131 authored by catch's avatar catch

Issue #2756527 by chgasparoto, Wim Leers: Move test coverage for...

Issue #2756527 by chgasparoto, Wim Leers: Move test coverage for rest_update_8202() from core/modules/views to core/modules/rest
parent d430fc96
<?php
namespace Drupal\views\Tests\Update;
namespace Drupal\rest\Tests\Update;
use Drupal\system\Tests\Update\UpdatePathTestBase;
......@@ -22,7 +22,7 @@ protected function setDatabaseDumpFiles() {
}
/**
* Ensures that update hook is run for views module.
* Ensures that update hook is run for rest module.
*/
public function testUpdate() {
$this->runUpdates();
......
......@@ -2,7 +2,7 @@
/**
* @file
* Test fixture for \Drupal\views\Tests\Update\RestExportAuthUpdateTest.
* Test fixture for \Drupal\rest\Tests\Update\RestExportAuthUpdateTest.
*/
use Drupal\Component\Serialization\Yaml;
......@@ -56,7 +56,7 @@
->fields([
'name' => 'rest.settings',
'data' => serialize($config),
'collection' => ''
'collection' => '',
])
->execute();
......@@ -70,6 +70,6 @@
->condition('name', 'views.view.rest_export_with_authorization')
->condition('collection', '')
->fields([
'data' => serialize(Yaml::decode(file_get_contents('core/modules/views/tests/modules/views_test_config/test_views/views.view.rest_export_with_authorization.yml')))
'data' => serialize(Yaml::decode(file_get_contents('core/modules/views/tests/modules/views_test_config/test_views/views.view.rest_export_with_authorization.yml'))),
])
->execute();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment