function NodeRequirementsStatusFilterWarningTest::enableNodeAccessTestModule

Enables Node Access Test module.

9 calls to NodeRequirementsStatusFilterWarningTest::enableNodeAccessTestModule()
NodeRequirementsStatusFilterWarningTest::testDescriptionWithMultipleViewsAndSingleModule in core/modules/node/tests/src/Kernel/NodeRequirementsStatusFilterWarningTest.php
Tests description with multiple views and one access module.
NodeRequirementsStatusFilterWarningTest::testDescriptionWithSingleViewAndSingleModule in core/modules/node/tests/src/Kernel/NodeRequirementsStatusFilterWarningTest.php
Tests description with one view and one access module.
NodeRequirementsStatusFilterWarningTest::testDescriptionWithViewsUiDisabled in core/modules/node/tests/src/Kernel/NodeRequirementsStatusFilterWarningTest.php
Tests description formatting with Views UI disabled.
NodeRequirementsStatusFilterWarningTest::testDescriptionWithViewsUiEnabledWithoutUserHavingEditViewDisplayAccess in core/modules/node/tests/src/Kernel/NodeRequirementsStatusFilterWarningTest.php
Tests description when Views UI is enabled but user cannot edit views.
NodeRequirementsStatusFilterWarningTest::testDescriptionWithViewsUiEnabledWithUserHavingEditViewDisplayAccess in core/modules/node/tests/src/Kernel/NodeRequirementsStatusFilterWarningTest.php
Tests description when Views UI is enabled but user can edit views.

... See full list

File

core/modules/node/tests/src/Kernel/NodeRequirementsStatusFilterWarningTest.php, line 264

Class

NodeRequirementsStatusFilterWarningTest
Tests redundant status filter warnings raised by node_requirements().

Namespace

Drupal\Tests\node\Kernel

Code

private function enableNodeAccessTestModule() : void {
  $this->enableModules([
    'node_access_test',
  ]);
  self::assertTrue($this->container
    ->get('module_handler')
    ->hasImplementations('node_grants'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.