diff --git a/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php b/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php
index 1693888..7be6947 100644
--- a/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php
+++ b/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php
@@ -1,21 +1,21 @@
 <?php
 
 /**
  * @file
  * Contains \Drupal\views_ui\Tests\ViewEditTest.
  */
 
 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;
 
 /**
  * Tests some general functionality of editing views, like deleting a view.
  */
 class ViewEditTest extends UITestBase {
 
   /**
    * Views used by this test.
    *
@@ -32,20 +32,21 @@
   }
 
   /**
    * Tests the delete link on a views UI.
    */
   public function testDeleteLink() {
     $this->drupalGet('admin/structure/views/view/test_view');
     $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'));
     $this->assertRaw(t('View %name deleted', array('%name' => $view->label())));
 
     $this->assertUrl('admin/structure/views');
     $view = $this->container->get('entity.manager')->getStorage('view')->load('test_view');
     $this->assertFalse($view instanceof View);
   }


