From 595e3b6be905e56b4aad0057ef979664e56c3b61 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 2 Oct 2014 13:51:28 +0200
Subject: [PATCH] Issue #2179903 by Grimreaper, jahaimon, InternetDevels |
 YesCT: Fixed testDeleteLink() in ViewEditTest with use correct use (not
 Drupal\views\Plugin\Core\Entity\View) and assertTrue before assertFalse.

---
 core/modules/views_ui/src/Tests/ViewEditTest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/modules/views_ui/src/Tests/ViewEditTest.php b/core/modules/views_ui/src/Tests/ViewEditTest.php
index d9024dd60826..f7d591a5fd9b 100644
--- a/core/modules/views_ui/src/Tests/ViewEditTest.php
+++ b/core/modules/views_ui/src/Tests/ViewEditTest.php
@@ -8,7 +8,7 @@
 namespace Drupal\views_ui\Tests;
 
 use Drupal\Component\Utility\String;
-use Drupal\views\Plugin\Core\Entity\View;
+use Drupal\views\Entity\View;
 use Drupal\views\Views;
 
 /**
@@ -33,6 +33,7 @@ public function testDeleteLink() {
     $this->assertLink(t('Delete view'), 0, 'Ensure that the view delete link appears');
 
     $view = $this->container->get('entity.manager')->getStorage('view')->load('test_view');
+    $this->assertTrue($view instanceof View);
     $this->clickLink(t('Delete view'));
     $this->assertUrl('admin/structure/views/view/test_view/delete');
     $this->drupalPostForm(NULL, array(), t('Delete'));
-- 
GitLab