Skip to content
Snippets Groups Projects
Commit 2460cedb authored by Adam G-H's avatar Adam G-H
Browse files

Fix failing tests

parent cb5d95d2
No related branches found
No related tags found
1 merge request!152Issue #3483392 by jurgenhaas: Build privacy base recipe
Pipeline #323267 failed
......@@ -42,7 +42,8 @@ class ComponentValidationTest extends BrowserTestBase {
public function testHreflangAddedToTranslatedContent(): void {
ConfigurableLanguage::createFromLangcode('fr')->save();
$node = $this->drupalCreateNode(['type' => 'page']);
$node_type = $this->drupalCreateContentType()->id();
$node = $this->drupalCreateNode(['type' => $node_type]);
$translation = $node->addTranslation('fr')->setTitle('Le traduction');
$translation->save();
......
......
......@@ -60,7 +60,8 @@ class BasicSeoTest extends BrowserTestBase {
public function testJsonLdBreadcrumbListExists(): void {
$this->drupalPlaceBlock('system_breadcrumb_block');
$node = $this->drupalCreateNode(['type' => 'page']);
$node_type = $this->drupalCreateContentType()->id();
$node = $this->drupalCreateNode(['type' => $node_type]);
$this->drupalGet($node->toUrl());
// Ensure that the machine-readable breadcrumb list exists, but don't bother
// checking its internals. We trust Easy Breadcrumb to get it right.
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment