function DirectWriteTest::assertNotDirectWrite
Event listener that asserts the sandbox manager isn't in direct-write mode.
Parameters
\Drupal\package_manager\Event\SandboxEvent $event: The event being handled.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ DirectWriteTest.php, line 82
Class
- DirectWriteTest
- @covers \Drupal\package_manager\EventSubscriber\DirectWriteSubscriber @covers \Drupal\package_manager\SandboxManagerBase::isDirectWrite
Namespace
Drupal\Tests\package_manager\KernelCode
public function assertNotDirectWrite(SandboxEvent $event) : void {
$this->assertFalse($event->sandboxManager
->isDirectWrite());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.