- ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
Bartik is no longer there. Using Olivero instead.
- last update
about 2 years ago 29,412 pass - Status changed to Needs review
about 2 years ago 12:00pm 2 June 2023 - ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
Last to do is making a change record like:
https://www.drupal.org/node/2939152 โand when released adding to documentation:
https://www.drupal.org/docs/develop/theming-drupal/defining-a-theme-with... โ - Status changed to Needs work
about 2 years ago 4:29pm 2 June 2023 - ๐บ๐ธUnited States smustgrave
It does need a change record.
But nitpicky can the new functions have a return typehint.
Also for the test unless we are testing olivero specific code we should use stark.
- ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
With the test now using stark
- last update
about 2 years ago 29,408 pass, 1 fail - Open on Drupal.org โEnvironment: PHP 8.2 & MySQL 8last update
about 2 years ago Not currently mergeable. - @martijn-de-wit opened merge request.
- ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
Added an issue fork. Used patch from 33.
Then I alter the test to be in sync with the tests used for the logo option test.
---
hiding patches - Status changed to Needs review
about 2 years ago 12:24pm 5 June 2023 - Merge request !4108Issue #3037922: Allow theme developers to add the default favicon filename to the theme's .info.yml โ (Open) created by Martijn de Wit
- Open on Drupal.org โEnvironment: PHP 8.2 & MySQL 8last update
about 2 years ago Not currently mergeable. - last update
about 2 years ago 29,413 pass, 1 fail - Status changed to Needs work
about 2 years ago 5:26pm 5 June 2023 - ๐บ๐ธUnited States smustgrave
Test failure seems legit to the ticket.
- ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
Test is failing because the Stark theme itself has no favicon.ico.
3 options to solve this.
- Use an other core theme for this test, (only Olivero has a favicon)
- Add a favicon to the Stark theme.
- Add a favicon to a test theme and use that.
- ๐บ๐ธUnited States smustgrave
Okay so lets just switch back to claro. sorry for the noise.
- last update
about 2 years ago 29,431 pass, 2 fail - ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
Claro also doesn't have a favicon in its theme root ๐ So I will use Olivero for that case. Rest of test cases still uses Stark.
- last update
about 2 years ago 29,433 pass, 1 fail - last update
about 2 years ago 29,433 pass, 1 fail - ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
Don't understand why the last one fails.
The same logic for testing a logo is not failing
$theme_installer->install(['test_theme']); \Drupal::configFactory() ->getEditable('system.theme') ->set('default', 'test_theme') ->save(); $theme = $theme_handler->getTheme('test_theme'); drupal_static_reset('theme_get_setting'); // Tests logo set in test_theme.info.yml. $expected = '/' . $theme->getPath() . '/images/logo2.svg'; $this->assertEquals($expected, theme_get_setting('logo.url', 'test_theme'));
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
liam morland โ made their first commit to this issueโs fork.
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
Re-rolled. The same test is failing. Perhaps a better test would be to check the favicon element on the page.