diff --git a/browsertest-convert.php b/browsertest-convert.php index cef3245..6869330 100644 --- a/browsertest-convert.php +++ b/browsertest-convert.php @@ -111,6 +111,8 @@ 'SearchMultilingualTest', // https://www.drupal.org/node/2795071 'NodeAccessBaseTableTest', + 'BlockTest', + // @todo ... there are more // https://www.drupal.org/node/2795073 @@ -148,13 +150,56 @@ 'UpdateUploadTest', 'UserPasswordResetTest', 'UserPictureTest', - + // https://www.drupal.org/node/2795085 + 'BlockInstallTest', + 'PageCacheTest', + 'SearchPageCacheTagsTest', + 'EarlyRenderingControllerTest', + + // https://www.drupal.org/node/2795093 + 'CKEditorAdminTest', + 'CommentPagerTest', + 'ConfigEntityTest', + 'DateTimeFieldTest', + 'DateRangeFieldTest', + 'EditorAdminTest', + 'BooleanFieldTest', + 'BooleanFormatterSettingsTest', + 'EntityReferenceAdminTest', + 'NumberFieldTest', + 'FormTest', + 'NestedFormTest', + 'ManageDisplayTest', + 'FileFieldWidgetTest', + 'FileManagedFileElementTest', + 'ImageAdminStylesTest', + 'ImageFieldDisplayTest', + 'ResponsiveImageFieldUiTest', + 'WebTestBase', + 'AjaxFormCacheTest', + 'AjaxFormPageCacheTest', + 'AjaxInGroupTest', + 'CommandsTest', + 'DialogTest', + 'ElementValidationTest', + 'FormValuesTest', + 'FrameworkTest', + 'MultiFormTest', + 'ElementsTableSelectTest', + 'RebuildTest', + 'UserPasswordResetTest', + 'UserRegistrationTest', + 'BasicTest', + 'PreviewTest', + 'RowUITest', // Exclude update tests, they are their own beast. 'Update', // Exclude views, as their test base needs adaption. 'views', 'views_ui', + // Exclude big_pipe, because its doing curl magic + 'big_pipe', ]; function isTestExcluded($test_name, array $excluded_tests) { diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php similarity index 99% rename from core/modules/big_pipe/tests/src/Functional/BigPipePlaceholderTestCases.php rename to core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php index 48789e9..102b718 100644 --- a/core/modules/big_pipe/tests/src/Functional/BigPipePlaceholderTestCases.php +++ b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php @@ -5,7 +5,7 @@ * Contains \Drupal\Tests\big_pipe\Unit\Render\Placeholder\BigPipePlaceholderTestCases. */ -namespace Drupal\Tests\big_pipe\Functional; +namespace Drupal\big_pipe\Tests; use Drupal\big_pipe\Render\BigPipeMarkup; use Drupal\Core\Session\AccountInterface; diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/src/Tests/BigPipeTest.php similarity index 99% rename from core/modules/big_pipe/tests/src/Functional/BigPipeTest.php rename to core/modules/big_pipe/src/Tests/BigPipeTest.php index 1708f63..a3f773e 100644 --- a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php +++ b/core/modules/big_pipe/src/Tests/BigPipeTest.php @@ -1,6 +1,6 @@ config('system.site')->set('page.front', '/test-page')->save(); - - // Create Full HTML text format. - $full_html_format = FilterFormat::create(array( - 'format' => 'full_html', - 'name' => 'Full HTML', - )); - $full_html_format->save(); - - // Create and log in an administrative user having access to the Full HTML - // text format. - $this->adminUser = $this->drupalCreateUser(array( - 'administer blocks', - $full_html_format->getPermissionName(), - 'access administration pages', - )); - $this->drupalLogin($this->adminUser); - - // Define the existing regions. - $this->regions = array( - 'header', - 'sidebar_first', - 'content', - 'sidebar_second', - 'footer', - ); - $block_storage = $this->container->get('entity_type.manager')->getStorage('block'); - $blocks = $block_storage->loadByProperties(array('theme' => $this->config('system.theme')->get('default'))); - foreach ($blocks as $block) { - $block->delete(); - } - } - -} diff --git a/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php similarity index 99% rename from core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php rename to core/modules/ckeditor/src/Tests/CKEditorAdminTest.php index e101799..d10180d 100644 --- a/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php +++ b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php @@ -1,11 +1,11 @@ resetDefinitions(); - // Reset the static load cache. - \Drupal::entityManager()->getStorage('menu_link_content')->resetCache(); - $definition = $menu_link_manager->getDefinition($menu_plugin_id); - - $entity = NULL; - - // Pull the path from the menu link content. - if (strpos($menu_plugin_id, 'menu_link_content') === 0) { - list(, $uuid) = explode(':', $menu_plugin_id, 2); - /** @var \Drupal\menu_link_content\Entity\MenuLinkContent $entity */ - $entity = \Drupal::entityManager()->loadEntityByUuid('menu_link_content', $uuid); - } - - if (isset($expected_item['children'])) { - $child_ids = array_values($menu_link_manager->getChildIds($menu_plugin_id)); - sort($expected_item['children']); - if ($child_ids) { - sort($child_ids); - } - $this->assertEqual($expected_item['children'], $child_ids); - unset($expected_item['children']); - } - - if (isset($expected_item['parents'])) { - $parent_ids = array_values($menu_link_manager->getParentIds($menu_plugin_id)); - $this->assertEqual($expected_item['parents'], $parent_ids); - unset($expected_item['parents']); - } - - if (isset($expected_item['langcode']) && $entity) { - $this->assertEqual($entity->langcode->value, $expected_item['langcode']); - unset($expected_item['langcode']); - } - - if (isset($expected_item['enabled']) && $entity) { - $this->assertEqual($entity->enabled->value, $expected_item['enabled']); - unset($expected_item['enabled']); - } - - foreach ($expected_item as $key => $value) { - $this->assertTrue(isset($definition[$key])); - $this->assertEqual($definition[$key], $value); - } - } - -} diff --git a/core/modules/node/tests/src/Functional/NodeEditFormTest.php b/core/modules/node/src/Tests/NodeEditFormTest.php similarity index 99% rename from core/modules/node/tests/src/Functional/NodeEditFormTest.php rename to core/modules/node/src/Tests/NodeEditFormTest.php index cc12dbc..b154ca0 100644 --- a/core/modules/node/tests/src/Functional/NodeEditFormTest.php +++ b/core/modules/node/src/Tests/NodeEditFormTest.php @@ -1,6 +1,6 @@