- Issue created by @wim leers
- Merge request !468Resolve #3493388 "Remove pointless core once deps" β (Merged) created by wim leers
- π¬π§United Kingdom f.mazeikis Brighton
wim leers β credited f.mazeikis β .
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Turns out @mglaman's
// Verify `xb_test_page_xb_page_view` output was ignored, but attachments // were allowed. self::assertArrayHasKey('xb_test_page', $this->drupalSettings); self::assertEquals(['foo' => 'Bar'], $this->drupalSettings['xb_test_page']); self::assertStringNotContainsString('xb_test_page_xb_page_view markup', $this->getRawContent());in
\Drupal\Tests\experience_builder\Kernel\Entity\PageViewBuilderTest::testView()was relying on this π¬@mglaman: can you please refactor that test to not rely on the presence of
drupalSettings? π If need be, add an additional SDC that explicitly depends ondrupalSettingsto allow the test to continue to use that testing pattern. - πΊπΈUnited States mglaman WI, USA
I'm slightly confused since the XB controller specifies drupalSettings in its render array. I don't get why removing the library definitions would break the test...
Unless in Kernel test the automatic addition of the library doesn't happen like in a fully bootstrapped system? I'll dig in.
- πΊπΈUnited States mglaman WI, USA
Ugh, I looked too fast:
self::assertArrayHasKey('xb_test_page', $this->drupalSettings);This is from the test module hook
xb_test_page_xb_page_view:function xb_test_page_xb_page_view(array &$build): void { $build['#attached']['drupalSettings']['xb_test_page'] = [ 'foo' => 'Bar', ];It's to verify
\Drupal\experience_builder\Entity\PageViewBuilder::alterBuild. The hook needs to specify the library I guess. - πΊπΈUnited States mglaman WI, USA
now f.mazeikis can review :) https://git.drupalcode.org/project/experience_builder/-/merge_requests/4... should fix it
-
wim leers β
committed 9ab0f736 on 0.x
Issue #3493388 by wim leers, mglaman, f.mazeikis: Remove pointless asset...
-
wim leers β
committed 9ab0f736 on 0.x
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Thanks, @mglaman & @f.mazeikis!
Only the
phpstanCI job is failing, but it's failing on0.xin the same way due to upstream changes in Drupal core11.1.x.Merged!
Automatically closed - issue fixed for 2 weeks with no activity.