Skip to content
Snippets Groups Projects

Issue #3100732: Allow specifying `meta` data on JSON:API objects

Closed Björn Brala requested to merge issue/drupal-3100732:3100732-allow-specifying-meta into 10.1.x
13 files
+ 23
33
Compare changes
  • Side-by-side
  • Inline
Files
13
  • 8c03eb75
    Issue #3281454 by _shY, pooja saraah, deviantintegral, quietone, alexpott,... · 8c03eb75
    Lauri Timmanee authored
    Issue #3281454 by _shY, pooja saraah, deviantintegral, quietone, alexpott, nod_: Update various module tests to not use Bartik and Seven
    
    (cherry picked from commit cd700d84)
@@ -204,7 +204,7 @@ public function testsBlockContentAddTypes() {
->getStorage('block_content');
// Install all themes.
$themes = ['bartik', 'olivero', 'seven', 'stark'];
$themes = ['olivero', 'stark', 'claro'];
\Drupal::service('theme_installer')->install($themes);
$theme_settings = $this->config('system.theme');
foreach ($themes as $default_theme) {
@@ -220,15 +220,7 @@ public function testsBlockContentAddTypes() {
$this->drupalGet($path);
$this->clickLink('Place block');
$this->clickLink('Add custom block');
// The seven theme has markup inside the link, we cannot use clickLink().
if ($default_theme == 'seven') {
$options = $theme != $default_theme ? ['query' => ['theme' => $theme]] : [];
$this->assertSession()->linkByHrefExists(Url::fromRoute('block_content.add_form', ['block_content_type' => 'foo'], $options)->toString());
$this->drupalGet('block/add/foo', $options);
}
else {
$this->clickLink('foo');
}
$this->clickLink('foo');
// Create a new block.
$edit = ['info[0][value]' => $this->randomMachineName(8)];
$this->submitForm($edit, 'Save');
Loading