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
2 files
+ 47
5
Compare changes
  • Side-by-side
  • Inline
Files
2
<?php
namespace Drupal\Tests\olivero\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests the update path for Olivero.
*
* @group Update
*/
class OliveroPostUpdateTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../../modules/system/tests/fixtures/update/drupal-9.4.0.filled.standard.php.gz',
];
}
/**
* Tests update hook setting base primary color.
*/
public function testOliveroPrimaryColorUpdate() {
$config = $this->config('olivero.settings');
$this->assertEmpty($config->get('base_primary_color'));
// Run updates.
$this->runUpdates();
$config = $this->config('olivero.settings');
$this->assertSame('#1b9ae4', $config->get('base_primary_color'));
}
}
Loading