+ // Set to the same machine name and save the View.
+ $edit = ['display_id' => 'test_1'];
+ $this->drupalPostForm('admin/structure/views/nojs/display/test_view/test_1/display_id', $edit, 'Apply');
+ $this->drupalPostForm(NULL, [], 'Save');
+ $this->assertLink(t('test_1'));
+