summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2016-07-09 01:10:48 +0200
committerEmil Stjerneman2016-07-09 01:10:48 +0200
commit9e9045d5b5e4757dd674ef039d78cbec06392dcc (patch)
treef2599cc892a46aef89c445161817444cb97dfa67
parent6ea2eafff258e9841a5b1d33b8e789ae6c9e2a8c (diff)
by anon: Fixed failing tests8.x-5.0-beta1
-rw-r--r--tests/src/Kernel/LinkitEditorLinkDialogTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/Kernel/LinkitEditorLinkDialogTest.php b/tests/src/Kernel/LinkitEditorLinkDialogTest.php
index 67bd7c1..0ea7060 100644
--- a/tests/src/Kernel/LinkitEditorLinkDialogTest.php
+++ b/tests/src/Kernel/LinkitEditorLinkDialogTest.php
@@ -122,7 +122,7 @@ class LinkitEditorLinkDialogTest extends LinkitKernelTestBase {
$this->assertEquals('linkit.autocomplete', $form['attributes']['href']['#autocomplete_route_name'], 'Linkit is enabled on the href field.');
$this->assertEquals('', $form['attributes']['href']['#default_value'], 'The href attribute is empty.');
- $this->assertEquals('', $form['link-information']['#context']['link_target'], 'Link information is empty.');
+ $this->assertEquals('', $form['attributes']['link-information']['#context']['link_target'], 'Link information is empty.');
$form_state->setValue(['attributes', 'href'], 'entity:missing_entity/1');
$form_builder->submitForm($form_object, $form_state);
@@ -186,7 +186,7 @@ class LinkitEditorLinkDialogTest extends LinkitKernelTestBase {
$this->assertEquals('linkit.autocomplete', $form['attributes']['href']['#autocomplete_route_name'], 'Linkit is enabled on the href field.');
$this->assertEquals('entity:entity_test/1', $form['attributes']['href']['#default_value'], 'The href attribute is empty.');
- $this->assertEquals($entity->label(), $form['link-information']['#context']['link_target'], 'Link information is empty.');
+ $this->assertEquals($entity->label(), $form['attributes']['link-information']['#context']['link_target'], 'Link information is empty.');
// Make sure the dialog don't display entity labels for inaccessible
// entities.
@@ -222,7 +222,7 @@ class LinkitEditorLinkDialogTest extends LinkitKernelTestBase {
$this->assertEquals('linkit.autocomplete', $form['attributes']['href']['#autocomplete_route_name'], 'Linkit is enabled on the href field.');
$this->assertEquals('entity:entity_test/2', $form['attributes']['href']['#default_value'], 'The href attribute is empty.');
- $this->assertEquals('entity:entity_test/2', $form['link-information']['#context']['link_target'], 'Link information is empty.');
+ $this->assertEquals('entity:entity_test/2', $form['attributes']['link-information']['#context']['link_target'], 'Link information is empty.');
}
/**
@@ -261,7 +261,7 @@ class LinkitEditorLinkDialogTest extends LinkitKernelTestBase {
$this->assertEquals('linkit.autocomplete', $form['attributes']['href']['#autocomplete_route_name'], 'Linkit is enabled on the href field.');
$this->assertEquals('http://example.com/', $form['attributes']['href']['#default_value'], 'The href attribute is empty.');
- $this->assertEquals('http://example.com/', $form['link-information']['#context']['link_target'], 'Link information is empty.');
+ $this->assertEquals('http://example.com/', $form['attributes']['link-information']['#context']['link_target'], 'Link information is empty.');
}
}