function NodeRequirementsStatusFilterWarningTest::testNodeGrantsWithProblematicView
Tests node_requirements() with node grants and one problematic view.
File
-
core/
modules/ node/ tests/ src/ Kernel/ NodeRequirementsStatusFilterWarningTest.php, line 71
Class
- NodeRequirementsStatusFilterWarningTest
- Tests redundant status filter warnings raised by node_requirements().
Namespace
Drupal\Tests\node\KernelCode
public function testNodeGrantsWithProblematicView() : void {
$this->enableNodeAccessTestModule();
$this->createTestView('test_view', 'Test View', TRUE, [
$this->getStatusFilterConfig(),
]);
$requirements = $this->getRequirements();
$this->assertArrayHasKey('node_status_filter', $requirements);
$this->assertEquals(RequirementSeverity::Warning, $requirements['node_status_filter']['severity']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.