public function ViewsEntitySchemaSubscriberIntegrationTest::testRevisionDisabling in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php \Drupal\views\Tests\EventSubscriber\ViewsEntitySchemaSubscriberIntegrationTest::testRevisionDisabling()
Tests that removing revision support disables the view.
File
- core/
modules/ views/ src/ Tests/ EventSubscriber/ ViewsEntitySchemaSubscriberIntegrationTest.php, line 277 - Contains \Drupal\views\Tests\EventSubscriber\ViewsEntitySchemaSubscriberIntegrationTest.
Class
- ViewsEntitySchemaSubscriberIntegrationTest
- Tests \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber
Namespace
Drupal\views\Tests\EventSubscriberCode
public function testRevisionDisabling() {
$this
->updateEntityTypeToRevisionable();
$this->entityDefinitionUpdateManager
->applyUpdates();
$this
->updateEntityTypeToNotRevisionable();
$this->entityDefinitionUpdateManager
->applyUpdates();
/** @var \Drupal\views\Entity\View $view */
$entity_storage = $this->entityManager
->getStorage('view');
$view = $entity_storage
->load('test_view_entity_test_revision');
$this
->assertFalse($view
->status());
}