public function DisableEntityTypesTest::testDisableEntityTypes in Multiversion 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/DisableEntityTypesTest.php \Drupal\Tests\multiversion\Functional\DisableEntityTypesTest::testDisableEntityTypes()
Tests visibility on admin/content page when not multi-versionable.
File
- tests/
src/ Functional/ DisableEntityTypesTest.php, line 27
Class
- DisableEntityTypesTest
- @group multiversion
Namespace
Drupal\Tests\multiversion\FunctionalCode
public function testDisableEntityTypes() {
\Drupal::service('multiversion.manager')
->disableEntityTypes();
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Page',
]);
$this
->drupalLogin($this->rootUser);
$this
->drupalGet('node/add/page');
$this
->drupalPostForm(NULL, [
'title[0][value]' => 'Node title test',
'body[0][value]' => 'This is node content',
], t('Save'));
$this
->drupalGet('admin/content');
$this
->assertSession()
->pageTextContains('Node title test');
}