You are here

public function ViewsUiTest::testWorkspaceFieldsAvailable in Multiversion 8

Tests that workspace entity fields are available in Views UI.

File

tests/src/Functional/ViewsUiTest.php, line 27

Class

ViewsUiTest
@group multiversion

Namespace

Drupal\Tests\multiversion\Functional

Code

public function testWorkspaceFieldsAvailable() {
  $account = User::load(1);
  $account
    ->setPassword('admin')
    ->save();
  $account->passRaw = 'admin';
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet('/admin/structure/views/add');

  // Assert that workspaces are available as a base table option. Since
  // workspaces use the generic Views data handler, this pretty much ensures
  // that all fields of the workspace entity type are available to the view.
  $this
    ->assertSession()
    ->optionExists('show[wizard_key]', 'standard:workspace');
}