Verified Commit 77fcc708 authored by Dave Long's avatar Dave Long
Browse files

task: #3590882 Standard profile should not include Olivero anymore, should...

task: #3590882 Standard profile should not include Olivero anymore, should provide guidance on how to get started

By: gábor hojtsy
By: catch
By: lauriii
By: pameeela
By: xjm
By: wim leers
By: phenaproxima
By: tim.plunkett
By: pdureau
By: ckrina
By: quietone
By: mherchel
By: benjifisher
By: rkoller
By: simohell
By: the_g_bomb
parent 429cf505
Loading
Loading
Loading
Loading
+2 −2
Changes for core/modules/contact/tests/src/Functional/migrate_drupal_ui/d6/Upgrade6Test.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ protected function getEntityCounts(): array {
    return [
      'action' => 24,
      'base_field_override' => 6,
      'block' => 28,
      'block' => 17,
      'block_content' => 1,
      'block_content_type' => 1,
      'comment' => 1,
@@ -76,7 +76,7 @@ protected function getEntityCounts(): array {
      'configurable_language' => 5,
      'contact_form' => 4,
      'contact_message' => 0,
      'date_format' => 12,
      'date_format' => 11,
      'editor' => 2,
      'entity_form_display' => 6,
      'entity_form_mode' => 1,
+3 −3
Changes for core/modules/contact/tests/src/Functional/migrate_drupal_ui/d7/Upgrade7Test.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ protected function setUp(): void {

    $this->loadFixture($this->getModulePath('contact') . '/tests/fixtures/drupal7.php');

    $this->expectedLoggedErrors = 16;
    $this->expectedLoggedErrors = 18;
    // If saving the logs, then set the admin user.
    if ($this->outputLogs) {
      $this->migratedAdminUserName = 'admin';
@@ -69,7 +69,7 @@ protected function getEntityCounts(): array {
    return [
      'action' => 24,
      'base_field_override' => 1,
      'block' => 23,
      'block' => 11,
      'block_content' => 1,
      'block_content_type' => 1,
      'comment' => 1,
@@ -77,7 +77,7 @@ protected function getEntityCounts(): array {
      'configurable_language' => 5,
      'contact_form' => 2,
      'contact_message' => 0,
      'date_format' => 12,
      'date_format' => 11,
      'editor' => 2,
      'entity_form_display' => 12,
      'entity_form_mode' => 1,
+21 −22
Changes for core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php: 21 added lines, 22 removed lines.
Original line number Diff line number Diff line
@@ -157,13 +157,12 @@ protected function audioTest(): void {
    $media = \Drupal::entityTypeManager()->getStorage('media')->loadUnchanged($audio_media_id);
    $this->assertSame($test_filename, $media->label());

    // Here we expect to see only the linked filename. Assert only one element
    // in the content region.
    $assert_session->elementsCount('css', 'div.media--type-audio > *', 1);
    // Here we expect to see only the linked filename. Assert the audio field exists.
    $assert_session->elementsCount('css', '.field--name-field-media-audio-file', 1);

    // Assert the audio file is present inside the media element and that its
    // src attribute matches the audio file.
    $audio_element = $assert_session->elementExists('css', 'div.media--type-audio .field--name-field-media-audio-file audio > source');
    $audio_element = $assert_session->elementExists('css', '.field--name-field-media-audio-file audio > source');
    /** @var \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator */
    $file_url_generator = \Drupal::service('file_url_generator');
    $expected_audio_src = $file_url_generator->generate(\Drupal::token()->replace('public://[date:custom:Y]-[date:custom:m]/' . $test_filename))->toString();
@@ -188,11 +187,11 @@ protected function audioTest(): void {

    // Again we expect to see only the linked filename. Assert only one element
    // in the content region.
    $assert_session->elementsCount('css', 'div.media--type-audio > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-audio-file', 1);

    // Assert the audio file is present inside the media element and that its
    // src attribute matches the updated audio file.
    $audio_element = $assert_session->elementExists('css', 'div.media--type-audio .field--name-field-media-audio-file audio > source');
    $audio_element = $assert_session->elementExists('css', '.field--name-field-media-audio-file audio > source');
    $expected_audio_src = $file_url_generator->generate(\Drupal::token()->replace('public://[date:custom:Y]-[date:custom:m]/' . $test_filename_updated))->toString();
    $this->assertSame($expected_audio_src, $audio_element->getAttribute('src'));
  }
@@ -247,12 +246,12 @@ protected function imageTest(): void {

    // Here we expect to see only the image, nothing else. Assert only one
    // element in the content region.
    $assert_session->elementsCount('css', 'div.media--type-image > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-image', 1);

    // Assert the image element is present inside the media element and that its
    // src attribute uses the large image style, the label is visually hidden,
    // and there is no link to the image file.
    $image_element = $assert_session->elementExists('css', 'div.media--type-image img');
    $image_element = $assert_session->elementExists('css', '.field--name-field-media-image img');
    /** @var \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator */
    $file_url_generator = \Drupal::service('file_url_generator');
    $expected_image_src = $file_url_generator->generate(\Drupal::token()->replace('public://styles/large/public/[date:custom:Y]-[date:custom:m]/' . $image_media_name))->toString();
@@ -282,12 +281,12 @@ protected function imageTest(): void {

    // Again we expect to see only the image, nothing else. Assert only one
    // element in the content region.
    $assert_session->elementsCount('css', 'div.media--type-image > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-image', 1);

    // Assert the image element is present inside the media element and that its
    // src attribute uses the large image style, the label is visually hidden,
    // and there is no link to the image file.
    $image_element = $assert_session->elementExists('css', 'div.media--type-image img');
    $image_element = $assert_session->elementExists('css', '.field--name-field-media-image img');
    $expected_image_src = $file_url_generator->generate(\Drupal::token()->replace('public://styles/large/public/[date:custom:Y]-[date:custom:m]/' . $image_media_name_updated))->toString();
    $this->assertStringContainsString($expected_image_src, $image_element->getAttribute('src'));
    $assert_session->elementExists('css', '.field--name-field-media-image .field__label.visually-hidden');
@@ -350,11 +349,11 @@ protected function documentTest(): void {

    // Here we expect to see only the linked filename. Assert only one element
    // in the content region.
    $assert_session->elementsCount('css', 'div.media--type-document > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-document', 1);

    // Assert the file link is present in the media element and its text matches
    // the filename.
    $link_element = $assert_session->elementExists('css', 'div.media--type-document .field--name-field-media-document a');
    $link_element = $assert_session->elementExists('css', '.field--name-field-media-document a');
    $this->assertSame($test_filename, $link_element->getText());

    // Assert the media name is updated through the field mapping when changing
@@ -376,11 +375,11 @@ protected function documentTest(): void {

    // Again we expect to see only the linked filename. Assert only one element
    // in the content region.
    $assert_session->elementsCount('css', 'div.media--type-document > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-document', 1);

    // Assert the file link is present in the media element and its text matches
    // the updated filename.
    $link_element = $assert_session->elementExists('css', 'div.media--type-document .field--name-field-media-document a');
    $link_element = $assert_session->elementExists('css', '.field--name-field-media-document a');
    $this->assertSame($test_filename_updated, $link_element->getText());
  }

@@ -438,11 +437,11 @@ protected function remoteVideoTest(): void {

    // Here we expect to see only the video iframe. Assert only one element in
    // the content region.
    $assert_session->elementsCount('css', 'div.media--type-remote-video > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-oembed-video', 1);

    // Assert the iframe is present in the media element and its src attribute
    // matches the URL and query parameters.
    $iframe_url = $assert_session->elementExists('css', 'div.media--type-remote-video .field--name-field-media-oembed-video iframe')->getAttribute('src');
    $iframe_url = $assert_session->elementExists('css', '.field--name-field-media-oembed-video iframe')->getAttribute('src');
    $iframe_url = parse_url($iframe_url);
    $this->assertStringEndsWith('/media/oembed', $iframe_url['path']);
    $this->assertNotEmpty($iframe_url['query']);
@@ -465,11 +464,11 @@ protected function remoteVideoTest(): void {

    // Again we expect to see only the video iframe. Assert only one element in
    // the content region.
    $assert_session->elementsCount('css', 'div.media--type-remote-video > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-oembed-video', 1);

    // Assert the iframe is present in the media element and its src attribute
    // matches the updated URL and query parameters.
    $iframe_url = $assert_session->elementExists('css', 'div.media--type-remote-video .field--name-field-media-oembed-video iframe')->getAttribute('src');
    $iframe_url = $assert_session->elementExists('css', '.field--name-field-media-oembed-video iframe')->getAttribute('src');
    $iframe_url = parse_url($iframe_url);
    $this->assertStringEndsWith('/media/oembed', $iframe_url['path']);
    $this->assertNotEmpty($iframe_url['query']);
@@ -535,11 +534,11 @@ protected function videoTest(): void {

    // Here we expect to see only the linked filename. Assert only one element
    // in the content region.
    $assert_session->elementsCount('css', 'div.media--type-video > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-video-file', 1);

    // Assert the video element is present inside the media element and that its
    // src attribute matches the video file.
    $video_element = $assert_session->elementExists('css', 'div.media--type-video .field--name-field-media-video-file video > source');
    $video_element = $assert_session->elementExists('css', '.field--name-field-media-video-file video > source');
    /** @var \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator */
    $file_url_generator = \Drupal::service('file_url_generator');
    $expected_video_src = $file_url_generator->generate(\Drupal::token()->replace('public://[date:custom:Y]-[date:custom:m]/' . $test_filename))->toString();
@@ -564,11 +563,11 @@ protected function videoTest(): void {

    // Again we expect to see only the linked filename. Assert only one element
    // in the content region.
    $assert_session->elementsCount('css', 'div.media--type-video > *', 1);
    $assert_session->elementsCount('css', '.field--name-field-media-video-file', 1);

    // Assert the video element is present inside the media element and that its
    // src attribute matches the updated video file.
    $video_element = $assert_session->elementExists('css', 'div.media--type-video .field--name-field-media-video-file video > source');
    $video_element = $assert_session->elementExists('css', '.field--name-field-media-video-file video > source');
    $expected_video_src = $file_url_generator->generate(\Drupal::token()->replace('public://[date:custom:Y]-[date:custom:m]/' . $test_filename_updated))->toString();
    $this->assertSame($expected_video_src, $video_element->getAttribute('src'));
  }
+2 −2
Changes for core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ protected function getSourceBasePath(): string {
   */
  protected function getEntityCounts(): array {
    return [
      'block' => 33,
      'block' => 22,
      'block_content' => 2,
      'block_content_type' => 1,
      'comment' => 8,
@@ -114,7 +114,7 @@ protected function getEntityCounts(): array {
      'user_role' => 7,
      'menu_link_content' => 10,
      'view' => 14,
      'date_format' => 12,
      'date_format' => 11,
      'entity_form_display' => 28,
      'entity_form_mode' => 1,
      'entity_view_display' => 53,
+3 −3
Changes for core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ protected function setUp(): void {

    $this->loadFixture($this->getModulePath('migrate_drupal') . '/tests/fixtures/drupal7.php');

    $this->expectedLoggedErrors = 27;
    $this->expectedLoggedErrors = 29;
    // If saving the logs, then set the admin user.
    if ($this->outputLogs) {
      $this->migratedAdminUserName = 'admin';
@@ -83,7 +83,7 @@ protected function getSourceBasePath(): string {
   */
  protected function getEntityCounts(): array {
    return [
      'block' => 24,
      'block' => 12,
      'block_content' => 1,
      'block_content_type' => 1,
      'comment' => 4,
@@ -115,7 +115,7 @@ protected function getEntityCounts(): array {
      'user_role' => 4,
      'menu_link_content' => 12,
      'view' => 14,
      'date_format' => 12,
      'date_format' => 11,
      'entity_form_display' => 22,
      'entity_form_mode' => 1,
      'entity_view_display' => 31,
Loading